summaryrefslogtreecommitdiff
path: root/.config/bash/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/bash/functions.sh')
-rw-r--r--.config/bash/functions.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/bash/functions.sh b/.config/bash/functions.sh
index dc49e58..06547ed 100644
--- a/.config/bash/functions.sh
+++ b/.config/bash/functions.sh
@@ -24,6 +24,16 @@ resize_to_min() {
printf "\e[8;%d;%dt" $(max $LINES $2) $(max $COLUMNS $1)
}
+function r() {
+ if [ $# -ge 2 ]; then
+ resize $1 $2
+ elif [ $# -ge 1 ]; then
+ resize $1 $LINES
+ else
+ resize_to_min 100 35
+ fi
+}
+
nh() {
nohup "$@" &> /dev/null &
}