From: Simon Ruderich Date: Mon, 8 Oct 2012 14:20:20 +0000 (+0200) Subject: screenrc,setup.sh: Store temporary files in ~/.tmp/. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=76bee8c783194e4c5d08772f856c699dc3486d97 screenrc,setup.sh: Store temporary files in ~/.tmp/. This prevents cluttering ~/. --- diff --git a/screenrc.in b/screenrc.in index 4666ca5..e495774 100644 --- a/screenrc.in +++ b/screenrc.in @@ -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" diff --git a/setup.sh b/setup.sh index 234b17b..5e5acc6 100755 --- a/setup.sh +++ b/setup.sh @@ -22,6 +22,11 @@ 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