1
0
Fork 0
mirror of https://github.com/zdharma-continuum/zinit-configs.git synced 2025-01-31 04:08:16 +01:00
zinit-configs/lainiwa/2nd_config/.zsh/prompts.zsh
lainiwa 0e4f0cb552 Split personal config files into two copies
For demonstrating new search behavior.
2019-06-27 05:54:30 +02:00

15 lines
384 B
Bash
Executable file

setopt PROMPT_SUBST # allow expansion in prompts
# https://github.com/agkozak/agkozak-zsh-theme
_is_ssh() {
[[ -n "${SSH_CONNECTION-}${SSH_CLIENT-}${SSH_TTY-}" ]]
}
_is_ssh && host='%F{red}@%F{yellow}%m' || host=''
export PS1="%B%F{yellow}%n${host}%F{red}: %F{green}%~ %F{red}%#%f%b "
export PS2="%_> "
export RPS1="%B%F{yellow}%(?..(%?%))%f%b"
unset -f _is_ssh
unset -v host