Fix zsh prompt
This commit is contained in:
parent
5cd91c77e0
commit
65073b717f
1 changed files with 4 additions and 3 deletions
|
@ -56,8 +56,7 @@
|
||||||
(environment-variables
|
(environment-variables
|
||||||
'(("HISTFILE" . "$HOME/.zsh/histfile")
|
'(("HISTFILE" . "$HOME/.zsh/histfile")
|
||||||
("HISTSIZE" . "1000")
|
("HISTSIZE" . "1000")
|
||||||
("SAVEHIST" . "1000")
|
("SAVEHIST" . "1000")))
|
||||||
("PROMPT" . "%T \\$(spwd) %B%(?.%F{2}.%F{1}[%?])>%b%f ")))
|
|
||||||
(zshrc
|
(zshrc
|
||||||
(list
|
(list
|
||||||
(mixed-text-file
|
(mixed-text-file
|
||||||
|
@ -70,6 +69,7 @@
|
||||||
"alias hc=herbstclient\n"
|
"alias hc=herbstclient\n"
|
||||||
"setopt SHARE_HISTORY\n"
|
"setopt SHARE_HISTORY\n"
|
||||||
"setopt HIST_IGNORE_ALL_DUPS\n"
|
"setopt HIST_IGNORE_ALL_DUPS\n"
|
||||||
|
"setopt PROMPT_SUBST\n"
|
||||||
"zle -N x-copy-region-as-kill\n"
|
"zle -N x-copy-region-as-kill\n"
|
||||||
"zle -N x-kill-region\n"
|
"zle -N x-kill-region\n"
|
||||||
"zle -N x-yank\n"
|
"zle -N x-yank\n"
|
||||||
|
@ -77,7 +77,8 @@
|
||||||
"bindkey -e '^W' x-kill-region\n"
|
"bindkey -e '^W' x-kill-region\n"
|
||||||
"bindkey -e '^Y' x-yank\n"
|
"bindkey -e '^Y' x-yank\n"
|
||||||
"autoload -Uz compinit\n"
|
"autoload -Uz compinit\n"
|
||||||
"compinit\n")))))
|
"compinit\n"
|
||||||
|
"PROMPT=\"%T \\$(spwd) %B%(?.%F{2}.%F{1}[%?])>%b%f \"")))))
|
||||||
|
|
||||||
;; This has to be the first extension because it needs to be added to the
|
;; This has to be the first extension because it needs to be added to the
|
||||||
;; configuration last.
|
;; configuration last.
|
||||||
|
|
Loading…
Reference in a new issue