From 441a0a66245131fe90e7cf454b08fe7d98943f35 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 2 Mar 2010 19:20:09 +0100 Subject: bash/functions.sh: add old screen wrapper function --- .config/bash/functions.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to '.config/bash/functions.sh') 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 $@) } -- cgit