diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-08 00:42:38 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-08 00:42:38 +1200 |
commit | aba4f7ac01df6330e6f25ee3039e52f13bb0a339 (patch) | |
tree | 7b3572df2520ee791c65627337437f66cf5aacdb | |
parent | Enhance rgl(1df) with a bit of color and sanity (diff) | |
download | dotfiles-aba4f7ac01df6330e6f25ee3039e52f13bb0a339.tar.gz dotfiles-aba4f7ac01df6330e6f25ee3039e52f13bb0a339.zip |
Clear prompt after interactive rgl(1df)
-rwxr-xr-x | bin/rgl | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |