diff options
author | Von Random <von@vdrandom.org> | 2023-10-03 15:31:55 +0300 |
---|---|---|
committer | Von Random <von@vdrandom.org> | 2023-10-03 15:31:55 +0300 |
commit | b3fcb1ca532eeb6bbc3129e7a3a91d0c90511bcd (patch) | |
tree | 33ecf5c08282edbc15d94fd4de9e254a40bba67e | |
parent | 40472939b4c84b8ffcb7de9718e13c5620a31349 (diff) |
bash: simplify PS1
-rw-r--r-- | cli/.bashrc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/.bashrc b/cli/.bashrc index c4bb750..810c3a9 100644 --- a/cli/.bashrc +++ b/cli/.bashrc @@ -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 |