summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/common.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common.nix b/lib/common.nix
index 3ace1d3..ea1e420 100644
--- a/lib/common.nix
+++ b/lib/common.nix
@@ -136,7 +136,7 @@ in
}
# my prompt, after much chagrin
- export PS1='\n\[\e[34m\][\u@\h:\w]\[\e[m\] $(date +%Y.%m.%d..%H.%M) \n$ '
+ export PS1="\n\[\e[34m\][\u@\h:\w]\[\e[m\] $(date +%Y.%m.%d..%H.%M) \$(if [ \$? == 0 ]; then true; else echo \(\$?\); fi) \n$ "
'';
shellAliases = {
add = "git add --ignore-removal";