summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-01-05 14:00:40 -0500
committerBen Sima <ben@bsima.me>2021-01-05 14:02:40 -0500
commit78d6537a2bd8a3c8bbb467bb6da0b0c7d3dfcc05 (patch)
tree18d98bba6a00c9f4e76984bb047f651485375646
parent2e149f3fbc1e598600f858c04ba02593176ac1f5 (diff)
simpler prompt >
-rw-r--r--lib/common.nix4
1 files changed, 2 insertions, 2 deletions
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() {