diff options
author | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-11-01 09:42:36 +0100 |
---|---|---|
committer | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-11-01 09:42:36 +0100 |
commit | d27ae0faf60733d509bd6372fa02bb01be9a535a (patch) | |
tree | 7afc043ec26f63a2042877d7741f88db4758884e /suweren | |
parent | fbf5cfc59f8eb4802dcb890c43d23fc2e0a38485 (diff) |
fix(home): redefine the bash prompt for clean execution of the concept
Diffstat (limited to 'suweren')
-rw-r--r-- | suweren/home.scm | 19 |
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")) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |