aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh/30-prompt.zsh
diff options
context:
space:
mode:
Diffstat (limited to '_zsh/30-prompt.zsh')
-rw-r--r--_zsh/30-prompt.zsh7
1 files changed, 1 insertions, 6 deletions
diff --git a/_zsh/30-prompt.zsh b/_zsh/30-prompt.zsh
index d1c70c2..bd821d1 100644
--- a/_zsh/30-prompt.zsh
+++ b/_zsh/30-prompt.zsh
@@ -32,11 +32,6 @@ function gitpwd() {
function myprompt() {
- case "$TERM" in
- xterm*|rxvt*)
- precmd() { [[ -t 1 ]] && print -Pn "\e]0;%m: %~\a" }
- preexec() { [[ -t 1 ]] && print -n "\e]0;$HOST: ${(q)1//(#m)[$'\000-\037\177-']/${(q)MATCH}}\a" }
- esac
setopt PROMPT_SUBST
nbsp=$'\u00A0'
PROMPT='%B%F{green}%m%(?.. %F{red}%??)%(1j. %F{yellow}%j&.)%b%f $(gitpwd)%B%(!.%F{red}.%F{green})%#${SSH_CONNECTION:+%#}$nbsp%b%f'
@@ -46,7 +41,7 @@ function myprompt() {
}
-# Setup prompts
+# Set prompts
myprompt