aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-08 00:42:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-08 00:42:38 +1200
commitaba4f7ac01df6330e6f25ee3039e52f13bb0a339 (patch)
tree7b3572df2520ee791c65627337437f66cf5aacdb
parentEnhance rgl(1df) with a bit of color and sanity (diff)
downloaddotfiles-aba4f7ac01df6330e6f25ee3039e52f13bb0a339.tar.gz
dotfiles-aba4f7ac01df6330e6f25ee3039e52f13bb0a339.zip
Clear prompt after interactive rgl(1df)
-rwxr-xr-xbin/rgl5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/rgl b/bin/rgl
index 4f783d9d..9ed2c12f 100755
--- a/bin/rgl
+++ b/bin/rgl
@@ -28,3 +28,8 @@ while {
# Run grep(1) with the read pattern over the arguments
grep -- "$pat" "$@"
done
+
+# Print a newline if this was a terminal to clear the prompt
+if [ -t 0 ] ; then
+ printf '\n'
+fi