Added bash prompt
This commit is contained in:
parent
1de24be7da
commit
c6768eb6eb
2 changed files with 5 additions and 3 deletions
1
guix-config/home/prompt.sh
Normal file
1
guix-config/home/prompt.sh
Normal 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\]'
|
||||||
|
|
@ -69,14 +69,15 @@
|
||||||
(service home-dbus-service-type)
|
(service home-dbus-service-type)
|
||||||
(service home-bash-service-type
|
(service home-bash-service-type
|
||||||
(home-bash-configuration
|
(home-bash-configuration
|
||||||
(environment-variables '(("PS1" . "\\[\\e[1;32m\\]\\u \\[\\e[1;34m\\]\\w \\[\\e[0m\\] ")
|
(environment-variables '(("EDITOR" . "emacsclient -c")))
|
||||||
("EDITOR" . "emacsclient -c")))
|
|
||||||
(aliases '(("gs" . "git status")
|
(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")
|
("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")
|
("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")
|
("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")
|
("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
|
(service home-dotfiles-service-type
|
||||||
(home-dotfiles-configuration
|
(home-dotfiles-configuration
|
||||||
(directories '("../../files"))))
|
(directories '("../../files"))))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue