Fix zsh prompt

This commit is contained in:
Tom Willemse 2022-06-16 19:10:14 -07:00
parent 5cd91c77e0
commit 65073b717f

View file

@ -56,8 +56,7 @@
(environment-variables
'(("HISTFILE" . "$HOME/.zsh/histfile")
("HISTSIZE" . "1000")
("SAVEHIST" . "1000")
("PROMPT" . "%T \\$(spwd) %B%(?.%F{2}.%F{1}[%?])>%b%f ")))
("SAVEHIST" . "1000")))
(zshrc
(list
(mixed-text-file
@ -70,6 +69,7 @@
"alias hc=herbstclient\n"
"setopt SHARE_HISTORY\n"
"setopt HIST_IGNORE_ALL_DUPS\n"
"setopt PROMPT_SUBST\n"
"zle -N x-copy-region-as-kill\n"
"zle -N x-kill-region\n"
"zle -N x-yank\n"
@ -77,7 +77,8 @@
"bindkey -e '^W' x-kill-region\n"
"bindkey -e '^Y' x-yank\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
;; configuration last.