about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--guix/bashrc5
-rw-r--r--guix/home.scm7
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)