From b3fcb1ca532eeb6bbc3129e7a3a91d0c90511bcd Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 3 Oct 2023 15:31:55 +0300 Subject: [PATCH] bash: simplify PS1 --- cli/.bashrc | 5 +---- 1 file changed, 1 insertion(+), 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