From d41a4d045312eb11b0d48a5e6aea15f3b339c8c5 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Fri, 17 Feb 2023 14:52:14 +0900 Subject: Config bash on GuixSD --- guix/bashrc | 5 +++++ guix/home.scm | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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) -- cgit 1.4.1