aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-02 11:26:39 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-02 11:26:39 +1200
commitca632bed9240bce35c6acffceeec7c46a3d9b3f1 (patch)
tree8c17a2f236f7146b78157239e75cd4fb2d3784a5 /bash/bashrc.d
parentStrip trailing newline from clrd() (diff)
downloaddotfiles-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.bash5
-rw-r--r--bash/bashrc.d/clwr.bash8
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
-}