diff options
author | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2025-06-17 22:17:37 +0200 |
---|---|---|
committer | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2025-06-17 22:28:52 +0200 |
commit | c8fe2ad749d185d7e1d65837beb6bb579a165358 (patch) | |
tree | 2e943ed0d75b8edd9de5644c469292bbe7e41b1a | |
parent | 069657f4929806aa0d0cb914f401ef5ae4caa8a8 (diff) |
id1000: transfer in bash configuration from the distribution repository
-rw-r--r-- | users/id1000.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/users/id1000.scm b/users/id1000.scm index b6aa861..1d4137b 100644 --- a/users/id1000.scm +++ b/users/id1000.scm @@ -518,6 +518,32 @@ ;;; +(define bash-prompt-configuration-core + " PS1='\\n\\n\\t $?\\n\\u@\\H \\w\\n\\! ") + +(define bash-prompt-configuration + (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")) + +(define bash-extension + (gnu:home:services:shells:home-bash-extension + (aliases (list '("edit" . "$EDITOR"))) + (bash-profile (list bash-prompt-configuration)) + (bashrc (list bash-prompt-configuration)))) + +(define bash-configuration + (gnu:services:simple-service 'uid1000-bash-configuration + gnu:home:services:shells:home-bash-service-type + bash-extension)) + (define-public dkim-service (gnu:services:service dkimproxy-out-service-type dkimproxy-out-configuration*)) @@ -556,6 +582,7 @@ gnu:home:services:home-xdg-configuration-files-service-type git-configuration-files)) (user-services (list bash + bash-configuration git-configuration)) (l-services (append suweren:home:%suweren-home-services user-services))) |