]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
shell/env: Add rlwrap history directory setting.
authorSimon Ruderich <simon@ruderich.org>
Fri, 4 Feb 2011 15:42:20 +0000 (16:42 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 4 Feb 2011 15:42:20 +0000 (16:42 +0100)
Also update setup.sh to create it.

setup.sh
shell/env

index ec6f9d749364a2f4f8c84d086561e911974f2da4..4318125a535ac89a35f71cf0f0429d0e978e8254 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -58,3 +58,6 @@ if installed colordiff; then
 fi
 link inputrc ~/.inputrc
 link screenrc ~/.screenrc
+
+# Create rlwrap history directory.
+mkdir -p shell/rlwrap
index d478b17d8b9c5c69844980e38a3549fda3bb2701..0739edf061ca91822e9cd206ce409c35eb00bf5f 100644 (file)
--- a/shell/env
+++ b/shell/env
@@ -37,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'