aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.config/zsh/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'home/.config/zsh/.zshrc')
-rw-r--r--home/.config/zsh/.zshrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/home/.config/zsh/.zshrc b/home/.config/zsh/.zshrc
index 58eb576..614e7f0 100644
--- a/home/.config/zsh/.zshrc
+++ b/home/.config/zsh/.zshrc
@@ -6,13 +6,14 @@ case $- in
esac
ttyctl -f
+# Enable colors and change prompt:
+autoload -U colors
+
# shellcheck source=/dev/null
[ -r ~/.config/sh/shinit ] && . ~/.config/sh/shinit
safesource /usr/share/git/completion/git-prompt.sh
-# Enable colors and change prompt:
-autoload -U colors
colors
setopt PROMPT_SUBST
PROMPT='%B%{$fg[green]%}%n%{$reset_color%}@%{$fg[cyan]%}%m%{$reset_color%}:%b%{$fg[yellow]%}%~%{$reset_color%}$(__git_ps1 " (%s)")%(?..[%{$fg[red]%}%?%{$reset_color%}]) %(!.#.>) '