From 76bee8c783194e4c5d08772f856c699dc3486d97 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 8 Oct 2012 16:20:20 +0200 Subject: [PATCH] screenrc,setup.sh: Store temporary files in ~/.tmp/. This prevents cluttering ~/. --- screenrc.in | 2 +- setup.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.44.1