1
0
Fork 0

update PS1 to show username and hostname

This commit is contained in:
Luca Bilke 2022-08-03 13:33:26 +02:00
parent 5cf85d646a
commit 737600ee7b
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# Enable colors and change prompt:
autoload -U colors && colors # Load colors
PS1="%B%{${fg[magenta]}%}[%{${fg[blue]}%}%3~%{${fg[magenta]}%}]%b %{${fg[green]}%}»%{${reset_color}%} "
PS1="%B%F{blue}%n%F{cyan}@%F{blue}%m %F{magenta}[%f%3~%F{magenta}] %(?.%F{green}.%F{red})»%f%b "
stty stop undef # Disable ctrl-s to freeze terminal.
setopt HIST_IGNORE_ALL_DUPS HIST_REDUCE_BLANKS HIST_VERIFY BANG_HIST interactive_comments autocd