diff --git a/dot-config/zsh/functions/prompt_pure_set_title b/dot-config/zsh/functions/prompt_pure_set_title deleted file mode 100644 index 21376f5..0000000 --- a/dot-config/zsh/functions/prompt_pure_set_title +++ /dev/null @@ -1,27 +0,0 @@ -#! zsh -# copied from https://github.com/sindresorhus/pure/blob/43aafe0b4dc05174c57ee623c03c64400e832ece/pure.zsh#L56 -setopt localoptions noshwordsplit - -# Emacs terminal does not support settings the title. -(( ${+EMACS} || ${+INSIDE_EMACS} )) && return - -case $TTY in - # Don't set title over serial console. - /dev/ttyS[0-9]*) return;; -esac - -# Show hostname if connected via SSH. -local hostname= -if [[ -n $prompt_pure_state[username] ]]; then - # Expand in-place in case ignore-escape is used. - hostname="${(%):-(%m) }" -fi - -local -a opts -case $1 in - expand-prompt) opts=(-P);; - ignore-escape) opts=(-r);; -esac - -# Set title atomically in one print statement so that it works when XTRACE is enabled. -print -n $opts $'\e]0;'${hostname}${2}$'\a' diff --git a/dot-config/zsh/functions/starship_pure_title_precmd b/dot-config/zsh/functions/starship_pure_title_precmd deleted file mode 100644 index 3498cc3..0000000 --- a/dot-config/zsh/functions/starship_pure_title_precmd +++ /dev/null @@ -1,3 +0,0 @@ -#! zsh -autoload prompt_pure_set_title -prompt_pure_set_title 'expand-prompt' '%~' diff --git a/dot-config/zsh/functions/starship_pure_title_preexec b/dot-config/zsh/functions/starship_pure_title_preexec deleted file mode 100644 index cd8e657..0000000 --- a/dot-config/zsh/functions/starship_pure_title_preexec +++ /dev/null @@ -1,3 +0,0 @@ -#! zsh -autoload prompt_pure_set_title -prompt_pure_set_title 'ignore-escape' "$PWD:t: $2"