forked from colonelpanic/dotfiles
Fix zsh prompt to exapand every time.
This commit is contained in:
parent
7385ca2085
commit
2e8a7c572c
@ -10,6 +10,7 @@ compinit
|
|||||||
autoload -U edit-command-line
|
autoload -U edit-command-line
|
||||||
zle -N edit-command-line
|
zle -N edit-command-line
|
||||||
bindkey '\C-x\C-e' edit-command-line
|
bindkey '\C-x\C-e' edit-command-line
|
||||||
|
setopt PROMPT_SUBST
|
||||||
|
|
||||||
|
|
||||||
function current_directory() {
|
function current_directory() {
|
||||||
@ -26,4 +27,4 @@ function git_prompt_info () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
PROMPT="%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(hostname -s)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}$(current_directory)%{$reset_color%}$(git_prompt_info) %{$FG[239]%}with $(colored_sandbox_string)%{$FG[255]%} "
|
PROMPT='%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(hostname -s)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}$(current_directory)%{$reset_color%}$(git_prompt_info) %{$FG[239]%}with $(colored_sandbox_string)%{$FG[255]%} '
|
||||||
|
Loading…
Reference in New Issue
Block a user