From 78d6537a2bd8a3c8bbb467bb6da0b0c7d3dfcc05 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 5 Jan 2021 14:00:40 -0500 Subject: simpler prompt > --- lib/common.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/common.nix') diff --git a/lib/common.nix b/lib/common.nix index ee0fdf5..e49b0ee 100644 --- a/lib/common.nix +++ b/lib/common.nix @@ -201,8 +201,8 @@ in function regex { gawk 'match($0,/'$1'/, ary) {print ary['\$\{2:-'0'}']}'; } - # my prompt, after much chagrin - export PS1="\n\[\e[34m\][\u@\h:\w]\[\e[m\] \$(date +%Y.%m.%d..%H.%M) \$(if [ \$? == 0 ]; then true; else echo \(\$?\); fi) \n$ " + + export PS1='\n$(printf "%3.*s" $r $r)> ' # kill a process with fzf fkill() { -- cgit v1.2.3