]> git.phdru.name Git - dotfiles.git/blobdiff - .bashrc
.bashrc,.profile: Add to `$PATH` XScreenSaver hacks in `/usr/games`
[dotfiles.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index b69df3fd59b0e25ba0660dac46b175f9ee1fc78c..3255cb6d6892ad96e983e1b4674267dd501c840a 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -10,6 +10,9 @@
 umask 077
 
 PATH="$HOME"/bin:"$HOME"/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+if [ -n "$DISPLAY" ]; then
+    PATH=$PATH:/usr/games
+fi
 
 # Make `ssh host date` to display in 24-hour format
 LANG=C
@@ -26,6 +29,7 @@ esac
 . "$HOME"/.shellrc
 
 if [ "$HISTFILE" = "$HOME/.bash_history" ]; then
+    history -r
     # This is the default value set by interactive bash
     # when the global value was unset. Unset it here too.
     unset HISTFILE