mirror of
https://github.com/pgrondek/config.git
synced 2024-11-22 12:03:43 +00:00
[bash] Start server sesssions in screen if possible
This commit is contained in:
parent
a05616ef25
commit
c9695a0268
13
bash/bashrc
13
bash/bashrc
@ -146,3 +146,16 @@ fi
|
|||||||
|
|
||||||
export VISUAL=vim
|
export VISUAL=vim
|
||||||
export EDITOR="$VISUAL"
|
export EDITOR="$VISUAL"
|
||||||
|
|
||||||
|
# Start all sessions in screen when running on server
|
||||||
|
if [ "$computer_type" == "server" ]; then
|
||||||
|
if [ -d /usr/bin/screen ]; then
|
||||||
|
echo Server
|
||||||
|
if [ -z "$STY" ]; then
|
||||||
|
screen -R;
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Warning, no screen binary found"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user