1
0
Fork 0

bash: simplify PS1

This commit is contained in:
Von Random 2023-10-03 15:31:55 +03:00
parent 40472939b4
commit b3fcb1ca53

View file

@ -13,10 +13,7 @@ export EDITOR=vim
export TIME_STYLE=long-iso
export SSH_AUTH_SOCK="$HOME/.ssh/ssh_auth_sock"
((UID)) && ps_clr=53 || ps_clr=52
# just a colored version of [ $USER $HOSTNAME:$CWD ]
printf -v PS1 '\\[\\e[0m\\]\\[\\e[48;5;%sm\\] \\u \\[\\e[48;5;237m\\] \\h \\[\\e[48;5;234m\\] \\w \\[\\e[0m\\]\n\\$ ' $ps_clr
unset ps_clr
PS1='\[\e[0m\][ \u@\h \[\e[34m\]\w\[\e[0m\] ]\n\$ '
unalias ls ld ll 2>/dev/null