diff options
author | ben <benjaminfranzke@gmail.com> | 2010-03-02 19:20:09 +0100 |
---|---|---|
committer | ben <benjaminfranzke@gmail.com> | 2010-03-02 19:20:09 +0100 |
commit | 441a0a66245131fe90e7cf454b08fe7d98943f35 (patch) | |
tree | a8ad8cba23502a64d54f35f148a153fd5d5c1edf /.config/bash/functions.sh | |
parent | 18f4e8291e4d3e35f11336bf1ec1770d08a66856 (diff) | |
download | dotfiles-441a0a66245131fe90e7cf454b08fe7d98943f35.tar.gz dotfiles-441a0a66245131fe90e7cf454b08fe7d98943f35.tar.bz2 dotfiles-441a0a66245131fe90e7cf454b08fe7d98943f35.zip |
bash/functions.sh: add old screen wrapper function
Diffstat (limited to '.config/bash/functions.sh')
-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 $@) } |