Added bash prompt

This commit is contained in:
Aleksandr Lebedev 2025-11-07 23:34:46 +01:00
parent 1de24be7da
commit c6768eb6eb
2 changed files with 5 additions and 3 deletions

View file

@ -0,0 +1 @@
export PS1='\[\033[38;2;166;227;161m\]\u\[\033[0m\]@\[\033[38;2;137;180;250m\]\h\[\033[0m\]:\[\033[38;2;249;226;175m\]\w${GUIX_ENVIRONMENT:+ [env]}\[\033[0m\]\[\033[38;2;222;221;218m\] λ \[\033[0m\]'

View file

@ -69,14 +69,15 @@
(service home-dbus-service-type)
(service home-bash-service-type
(home-bash-configuration
(environment-variables '(("PS1" . "\\[\\e[1;32m\\]\\u \\[\\e[1;34m\\]\\w \\[\\e[0m\\] ")
("EDITOR" . "emacsclient -c")))
(environment-variables '(("EDITOR" . "emacsclient -c")))
(aliases '(("gs" . "git status")
("system-reconfigure" . "sudo -E guix time-machine -C ~/dotfiles/guix-config/channels-lock.scm -- system -L ~/dotfiles reconfigure ~/dotfiles/guix-config/system/$(hostname).scm")
("home-reconfigure" . "guix time-machine -C ~/dotfiles/guix-config/channels-lock.scm -- home -L ~/dotfiles reconfigure ~/dotfiles/guix-config/home/workstation.scm")
("guix-pull" . "guix pull --channels=$HOME/dotfiles/guix-config/channels.scm; guix describe --format=channels > $HOME/dotfiles/guix-config/channels-lock.scm")
("reconfigure" . "system-reconfigure && home-reconfigure")
("guix-full-upgrade" . "guix-pull && reconfigure")))))
("guix-full-upgrade" . "guix-pull && reconfigure")))
(bashrc
(list (local-file "prompt.sh")))))
(service home-dotfiles-service-type
(home-dotfiles-configuration
(directories '("../../files"))))