diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-02 11:26:39 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-02 11:26:39 +1200 |
commit | ca632bed9240bce35c6acffceeec7c46a3d9b3f1 (patch) | |
tree | 8c17a2f236f7146b78157239e75cd4fb2d3784a5 /bash/bashrc.d | |
parent | Strip trailing newline from clrd() (diff) | |
download | dotfiles-ca632bed9240bce35c6acffceeec7c46a3d9b3f1.tar.gz dotfiles-ca632bed9240bce35c6acffceeec7c46a3d9b3f1.zip |
Move clrd()/clwr() to scripts
clrd(1) is POSIX sh, but clwr(1) ideally needs Readline, so I've left it
as #!/bin/bash for now.
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/clrd.bash | 5 | ||||
-rw-r--r-- | bash/bashrc.d/clwr.bash | 8 |
2 files changed, 0 insertions, 13 deletions
diff --git a/bash/bashrc.d/clrd.bash b/bash/bashrc.d/clrd.bash deleted file mode 100644 index 145fc108..00000000 --- a/bash/bashrc.d/clrd.bash +++ /dev/null @@ -1,5 +0,0 @@ -# Clear screen, start tail -f on a file -clrd() { - clear - tail -f -} diff --git a/bash/bashrc.d/clwr.bash b/bash/bashrc.d/clwr.bash deleted file mode 100644 index 455484d9..00000000 --- a/bash/bashrc.d/clwr.bash +++ /dev/null @@ -1,8 +0,0 @@ -# Clear screen, accept line, write to all args, loop; use this as e.g. an input -# tmux window for a minimal IRC client like ii(1). Uses read -e to allow -# newlines. -clwr() { - while { clear && IFS= read -er line ; } ; do - printf '%s\n' "$line" - done -} |