summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.screenrc-22
-rw-r--r--.zprofile7
2 files changed, 9 insertions, 0 deletions
diff --git a/.screenrc-2 b/.screenrc-2
new file mode 100644
index 0000000..77df7c2
--- /dev/null
+++ b/.screenrc-2
@@ -0,0 +1,2 @@
+source /home/flo/.screenrc
+screen zsh
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
+