display shell version only for bash
This commit is contained in:
parent
d9f5fb7855
commit
66f4e7dcc7
1 changed files with 2 additions and 2 deletions
4
shellrc
4
shellrc
|
@ -167,7 +167,7 @@ if is_zsh; then
|
||||||
precmd() {
|
precmd() {
|
||||||
[[ -n ${vcs_enabled} ]] && vcs_info
|
[[ -n ${vcs_enabled} ]] && vcs_info
|
||||||
if [[ -z ${hide_info} ]]; then
|
if [[ -z ${hide_info} ]]; then
|
||||||
prompt_info="${lb}${prompt_user}${prompt_host}${bb}${prompt_cwd}${rb}${vcs_info_msg_0_} zsh${newline}"
|
prompt_info="${lb}${prompt_user}${prompt_host}${bb}${prompt_cwd}${rb}${vcs_info_msg_0_}${newline}"
|
||||||
else
|
else
|
||||||
prompt_info=''
|
prompt_info=''
|
||||||
fi
|
fi
|
||||||
|
@ -301,7 +301,7 @@ else
|
||||||
else
|
else
|
||||||
prompt_user='\[\e[1;31m\]\u\[\e[1;33m\]@\[\e[0m\]'
|
prompt_user='\[\e[1;31m\]\u\[\e[1;33m\]@\[\e[0m\]'
|
||||||
fi
|
fi
|
||||||
prompt_info="${lb}${prompt_user}${prompt_host}${bb}${prompt_cwd}${rb} bash-\v${newline}"
|
prompt_info="${lb}${prompt_user}${prompt_host}${bb}${prompt_cwd}${rb}${lb}bash-\v${rb}${newline}"
|
||||||
else
|
else
|
||||||
prompt_info=''
|
prompt_info=''
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue