aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/fzhist
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/fzhist')
-rwxr-xr-xplugins/fzhist14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/fzhist b/plugins/fzhist
index ca1db63..c47efa2 100755
--- a/plugins/fzhist
+++ b/plugins/fzhist
@@ -18,15 +18,15 @@ fi
if ! [ -z "$entry" ]; then
tmpfile=$(mktemp)
- echo "$entry" >> $tmpfile
- $EDITOR $tmpfile
+ echo "$entry" >> "$tmpfile"
+ $EDITOR "$tmpfile"
- if [ -s $tmpfile ]; then
- $SHELL -c "$(cat $tmpfile)"
+ if [ -s "$tmpfile" ]; then
+ $SHELL -c "$(cat "$tmpfile")"
fi
- rm $tmpfile
+ rm "$tmpfile"
- echo -n "Press any key to exit"
- read input
+ printf "Press any key to exit"
+ read -r _
fi