]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/env
shell/env: Add rlwrap history directory setting.
[config/dotfiles.git] / shell / env
index ed0ec52604843a982a29303717bcdd56d53d7ea4..0739edf061ca91822e9cd206ce409c35eb00bf5f 100644 (file)
--- a/shell/env
+++ b/shell/env
@@ -1,8 +1,6 @@
 # Configuration file for environment related options for all shells.
 
 
-. ~/.shell/functions
-
 source_debug ". ~/.shell/env"
 
 
@@ -11,7 +9,10 @@ source_debug ". ~/.shell/env"
 LANG=en_US.UTF-8
 export LANG
 
-# Add ~/bin and ~/.bin to PATH if available.
+# Add ~/bin and ~/.bin and ~/.shell/bin to PATH if available.
+if [ -d ~/.shell/bin ]; then
+    PATH=~/.shell/bin:$PATH
+fi
 if [ -d ~/bin ]; then
     PATH=~/bin:$PATH
 fi
@@ -36,6 +37,10 @@ if [ -O ~/tmp -a -d ~/tmp ]; then
     export TMP TEMP TMPDIR
 fi
 
+# Change rlwrap's home directory to prevent cluttering ~.
+RLWRAP_HOME=~/.shell/rlwrap
+export RLWRAP_HOME
+
 # Set colors for GNU ls (and zsh completions).
 # See `dircolors --print-database` for possible colors.
 LS_COLORS='no=00'