diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/bash/functions.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/bash/functions.sh b/.config/bash/functions.sh index 11988b3..c3782b3 100644 --- a/.config/bash/functions.sh +++ b/.config/bash/functions.sh @@ -5,11 +5,28 @@ resize() { printf "\e[8;%d;%dt" $2 $1 } +#s() { +# local name=${HOSTNAME}.${1} +# if [ $1 ]; then +# if [ -e /var/run/screen/S-$(whoami)/[0-9]*.${name} ]; then +# echo foo +# # screen -x -r -S ${name} +# else +# screen -S ${name} +# fi +# else +# screen -ls +# fi +#} + resize_to_min() { # eval $(resize -s $(max $LINES $2) $(max $COLUMNS $1)) printf "\e[8;%d;%dt" $(max $LINES $2) $(max $COLUMNS $1) } +nh() { + nohup "$@" &> /dev/null & +} gvim() { /usr/bin/gvim $([[ $# > 0 ]] && echo --remote-tab-silent $@) } |