diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-02-17 14:52:14 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-02-17 14:54:00 +0900 |
commit | d41a4d045312eb11b0d48a5e6aea15f3b339c8c5 (patch) | |
tree | 428a9d897db09dcabe1b061bc6bf4b78b8813a48 | |
parent | 04ebc33a55a0f05a4d938b02393fb03cb213d5e3 (diff) | |
download | dotfiles-d41a4d045312eb11b0d48a5e6aea15f3b339c8c5.tar.gz |
Config bash on GuixSD
-rw-r--r-- | guix/bashrc | 5 | ||||
-rw-r--r-- | guix/home.scm | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/guix/bashrc b/guix/bashrc index e69de29..e24d2a5 100644 --- a/guix/bashrc +++ b/guix/bashrc @@ -0,0 +1,5 @@ +shopt -s checkwinsize +shopt -s globstar +stty -ixon # for C-s +set -o emacs +PS1='\n\[\033[01;32m\]\u@\h${GUIX_ENVIRONMENT:+-shell}\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\]\$ ' diff --git a/guix/home.scm b/guix/home.scm index 0597ed5..e4a8c91 100644 --- a/guix/home.scm +++ b/guix/home.scm @@ -25,7 +25,12 @@ (services (list (service home-bash-service-type (home-bash-configuration - (bashrc (list (local-file "bashrc" "bashrc"))))) + (bashrc (list (local-file + (string-join + (list (dirname (current-filename)) + "bashrc") + "/") + "bashrc"))))) (simple-service 'more-home-environment-variables-service home-environment-variables-service-type `(("SHELL" . #t) |