Procházet zdrojové kódy

Update 'thisnthat.zsh-theme'

Updated to correctly show git branches
thisnthat před 3 roky
rodič
revize
a60aa80209
1 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. 5 4
      thisnthat.zsh-theme

+ 5 - 4
thisnthat.zsh-theme

@@ -9,19 +9,20 @@ else
    USER_COLOR="green"
 fi
 
+FQDN=`hostname -f`
+
 # Set the prompt
 #PROMPT="%{$fg[$USER_COLOR]%}%n@%M%{$reset_color%} %{$fg_bold[blue]%}%~%{$reset_color%} $(git_prompt_info)"$'\n'"%{$fg[$USER_COLOR]%}>%{$reset_color%} "
-#PROMPT='%{$fg[$USER_COLOR]%}%n@%M%{$reset_color%} %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)'$'\n''%{$fg[$USER_COLOR]%}>%{$reset_color%} '
+#PROMPT='%{$fg[$USER_COLOR]%}%n@${FQDN}%{$reset_color%} %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)'$'\n''%{$fg[$USER_COLOR]%}>%{$reset_color%} '
 
-FQDN=`hostname -f`
 HOST_NAME="%{$fg[$USER_COLOR]%}%n@${FQDN}%{$reset_color%}"
 LOCATION="%{$fg_bold[blue]%}%~%{$reset_color%}"
 LINE_PROMPT="%{$fg[$USER_COLOR]%}>%{$reset_color%} "
 NEWLINE=$'\n'
-PROMPT="${HOST_NAME} ${LOCATION} $(git_prompt_info) ${NEWLINE}${LINE_PROMPT}"
+PROMPT='${HOST_NAME} ${LOCATION} $(git_prompt_info) ${NEWLINE}${LINE_PROMPT}'
 
 # git prompt data
 ZSH_THEME_GIT_PROMPT_PREFIX="on %{$fg[magenta]%}"
 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
 ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} ✗"
-ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green] ✔"                                         
+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green] ✔"