summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--suweren/home.scm19
1 files changed, 15 insertions, 4 deletions
diff --git a/suweren/home.scm b/suweren/home.scm
index cd31e2d..5bc018f 100644
--- a/suweren/home.scm
+++ b/suweren/home.scm
@@ -53,11 +53,22 @@
;; update-commands
#:use-module (suweren update))
+(define bash-prompt-configuration-core
+ " PS1='\\n\\n\\t $?\\n\\u@\\H \\w\\n\\! ")
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
(define bash-prompt-configuration
- (guix:gexp:mixed-text-file "newline-prompt"
- "PS1=${PS1%?}\n"
- "PS1=${PS1%?}\\n'$ '\n"
- "PS1=\"\\n$PS1\""))
+ (guix:gexp:mixed-text-file "bash-prompt"
+ "\n"
+ "if [ -n \"$GUIX_ENVIRONMENT\" ] \n"
+ "then\n"
+ bash-prompt-configuration-core
+ "[env] \\$ '\n"
+ "else\n"
+ bash-prompt-configuration-core
+ "\\$ '\n"
+ "fi"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;