summaryrefslogtreecommitdiff
path: root/config/essentials/shell/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/essentials/shell/functions.sh')
-rw-r--r--config/essentials/shell/functions.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh
index e0b148c..3676f26 100644
--- a/config/essentials/shell/functions.sh
+++ b/config/essentials/shell/functions.sh
@@ -336,3 +336,24 @@ fchange()
eval "$1"
done
}
+
+unhappy.exe() {
+ [ "$1" ] &&
+ smiles=("[: " ".-." " :]" "._.") ||
+ smiles=("]: " ".-." " :[" "._.")
+
+ while true
+ do
+ for s in $smiles
+ do
+ printf '\r%s' "$s"
+ sleep 1
+ done
+ done
+}
+
+ssh_port()
+{
+ ssh -f -N -L 0.0.0.0:"$3":localhost:"$1" "$2"
+ >&2 printf "Forwarded port '%s' on '%s' to '%s'.\n" "$1" "$2" "$3"
+}