add check for file to do screen always
This commit is contained in:
parent
a0acdd69af
commit
376f3ecc24
1 changed files with 25 additions and 24 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Create a Screen session everytime, unless you don't want
|
# Create a Screen session everytime, unless you don't want
|
||||||
|
if [ -e ~/.always_screen ]; then
|
||||||
screen_cmd=$(which screen)
|
screen_cmd=$(which screen)
|
||||||
if [ -n "${screen_cmd}" ]; then
|
if [ -n "${screen_cmd}" ]; then
|
||||||
if [ -n "${STY}" ]; then
|
if [ -n "${STY}" ]; then
|
||||||
|
@ -33,3 +33,4 @@ if [ -n "${screen_cmd}" ]; then
|
||||||
else
|
else
|
||||||
echo "Screen is not installed. Install it so always_screen in your bashrc will work."
|
echo "Screen is not installed. Install it so always_screen in your bashrc will work."
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue