Update zshrc

This commit is contained in:
Cameron Reed 2024-08-06 08:22:26 -06:00
parent df7e96e628
commit 102561a179

View File

@ -91,7 +91,14 @@ function set_prompt() {
prefix+="%F{''${colors[$i]:-255}}''${prefixes[$i]}%f "
done
PROMPT="[''${prefix}%n@%m %1~]%(#.#.$) "
local user="${USER_OVERRIDE:-%n}"
local host="@${HOST_OVERRIDE:-%m}"
if [ -z "${SSH_CONNECTION}" ]; then
host=""
fi
PROMPT="[''${prefix}${user}${host} %1~]%(#.#.$) "
}
typeset -a precmd_functions