summaryrefslogtreecommitdiff
path: root/ranpas
diff options
context:
space:
mode:
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;