clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 5b2754868b88c143f44a97163cbf4d7e93ccbd35
parent 35521af0ecf0f76bd76a9be4042a5449efb5cbc1
Author: Chris Down <chris@chrisdown.name>
Date:   Mon, 27 Jul 2015 20:01:41 -0700

Make clipmenu cache directory user-specific

Fixes #2.

Diffstat:
Mclipmenu | 2+-
Mclipmenud | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/clipmenu b/clipmenu @@ -4,7 +4,7 @@ dmenu_lines=${CLIPMENU_LINES-8} declare -A selections -for file in /tmp/clipmenu/*; do +for file in /tmp/clipmenu.$USER/*; do first_line=$(sed -n '/./{p;q}' "$file") lines=$(wc -l "$file") diff --git a/clipmenud b/clipmenud @@ -1,6 +1,6 @@ #!/bin/bash -cache_dir=/tmp/clipmenu/ +cache_dir=/tmp/clipmenu.$USER/ mkdir -p "$cache_dir" declare -A last_data