]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
screenrc,setup.sh: Store temporary files in ~/.tmp/.
authorSimon Ruderich <simon@ruderich.org>
Mon, 8 Oct 2012 14:20:20 +0000 (16:20 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 8 Oct 2012 14:20:20 +0000 (16:20 +0200)
This prevents cluttering ~/.

screenrc.in
setup.sh

index 4666ca52ea5af3af2ac502d8c165d9d113b20647..e495774ec453ab094c5808549283dfea14270c46 100644 (file)
@@ -126,4 +126,4 @@ bind ; command -c window
 
 # Run urlview on current screen content. Very useful to follow links. Make
 # sure hardcopy_append is off before using this command.
-bind ^B eval "hardcopy $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
+bind ^B eval "hardcopy $HOME/.tmp/screen-urlview" "screen urlview $HOME/.tmp/screen-urlview"
index 234b17b6ad3dc0bfd75ee0da5b719628b1a85758..5e5acc65e0c1685f11d2a0af894a6171464ab2db 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
 
 hostname=`hostname`
 
+# Create private temporary directory used by many tools (including GNU screen
+# and tmux).
+mkdir -p ~/.tmp
+chmod 0700 ~/.tmp
+
 # Generate ~/.less with lesskey.
 lesskey lesskey
 chmod 0600 ~/.less