summaryrefslogtreecommitdiffstats
path: root/.zprofile
diff options
context:
space:
mode:
Diffstat (limited to '.zprofile')
-rw-r--r--.zprofile7
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
+