Skip to content

Commit 156ac98

Browse files
authored
Merge pull request #4 from mputz86/master
fix: save temporary keystroke file in tmp dir
2 parents 9559366 + bf92fdb commit 156ac98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

easymotion.tmux

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ PERF=$(get_tmux_option "@easymotion-perf" "false")
2323
CASE_SENSITIVE=$(get_tmux_option "@easymotion-case-sensitive" "false")
2424
SMARTSIGN=$(get_tmux_option "@easymotion-smartsign" "false")
2525

26-
tmp_file=$CURRENT_DIR/.keystroke
26+
tmp_file=$(mktemp -t tmux-easymotion_keystroke-XXXXXXX)
27+
2728
# Execute Python script with environment variables
2829
tmux bind $(get_tmux_option "@easymotion-key" "s") run-shell "\
2930
printf '\x03' > $tmp_file && tmux command-prompt -1 -p 'easymotion:' 'run-shell \"printf %s\\\\n \\\"%1\\\" > $tmp_file\"' \; \

0 commit comments

Comments
 (0)