summaryrefslogtreecommitdiff
path: root/ranpas
diff options
context:
space:
mode:
authorTslil Clingman <hiato1@gmail.com>2015-06-17 21:58:38 +0200
committerTslil Clingman <hiato1@gmail.com>2015-06-17 21:58:38 +0200
commiteb393abbcd6c3913701fdb8f7919ae663cec1e04 (patch)
treea83290faacde61a6575f5644e95749d29a021fa5 /ranpas
parent68cc45a8ed9dbdf461b055bffbf06681b50d18bd (diff)
Small tweak to UX
Diffstat (limited to 'ranpas')
-rwxr-xr-xranpas5
1 files changed, 3 insertions, 2 deletions
diff --git a/ranpas b/ranpas
index ac3c812..b5a668d 100755
--- a/ranpas
+++ b/ranpas
@@ -15,8 +15,9 @@ while :; do
if [ "$?" = "0" ]; then
echo Paste $rnd does not exist.
else
+ clear
more /tmp/paste-$rnd
- echo -n Save?\
+ echo -ne "\n\nSave $rnd?[n] "
read r
[ "$r" = "y" ] && echo Saving as paste $rnd in $HOME && cp /tmp/paste-$rnd $HOME
fi;
@@ -24,7 +25,7 @@ while :; do
echo Empty paste.
fi;
rm /tmp/paste-$rnd
- echo -n Quit?\
+ echo -n Quit?[n]\
read r
[ "$r" = "y" ] && exit
done;