diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-08-10 22:31:24 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-08-10 22:31:24 +0200 |
commit | da61c43f9c7a2250f4fa52b35bc3fedb49a4cf53 (patch) | |
tree | 924ff44124ca227c00e98bff85c72d97a4ac8204 /.zprofile | |
parent | 784eb963c7d46133a43916ebb800049b0714207d (diff) | |
download | dotfiles-da61c43f9c7a2250f4fa52b35bc3fedb49a4cf53.tar.gz dotfiles-da61c43f9c7a2250f4fa52b35bc3fedb49a4cf53.tar.xz |
add new files
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.zprofile')
-rw-r--r-- | .zprofile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..cc1db01 --- /dev/null +++ b/.zprofile @@ -0,0 +1,7 @@ +screenname=$(screen -list | grep "screen-sh-2") +if [ ! "$screenname" ]; then + exec screen -S "screen-sh-2" -c ~/.screenrc-2 +elif echo $screenname | grep -q "Detached"; then + exec screen -r screen-sh-2 +fi + |