]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Fix indentation.
authorSimon Ruderich <simon@ruderich.org>
Tue, 7 Aug 2012 12:43:24 +0000 (14:43 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 7 Aug 2012 12:43:24 +0000 (14:43 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index a1acba570b2a2686aa85a9538af9d9600478e82c..779d0dde656e7706bdc68c8d7ef6bda1164ac9ba 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -713,7 +713,7 @@ source_config ~/.zsh/rc.local
 if [[ $TERM != dumb && $TERM != linux && -z $STY && -z $TMUX ]]; then
     # Get running detached sessions.
     if [[ -z $use_tmux ]]; then
-    session=$(screen -list | grep 'Detached' | awk '{ print $1; exit }')
+        session=$(screen -list | grep 'Detached' | awk '{ print $1; exit }')
     else
         session=$(tmux list-sessions 2>/dev/null \
                   | sed '/(attached)$/ d; s/^\([0-9]\{1,\}\).*$/\1/; q')
@@ -721,7 +721,7 @@ if [[ $TERM != dumb && $TERM != linux && -z $STY && -z $TMUX ]]; then
 
     # As we exec later we have to set the title here.
     if [[ -z $use_tmux ]]; then
-    window_preexec "screen"
+        window_preexec "screen"
     else
         window_preexec "tmux"
     fi
@@ -729,14 +729,14 @@ if [[ $TERM != dumb && $TERM != linux && -z $STY && -z $TMUX ]]; then
     # Create a new session if none is running.
     if [[ -z $session ]]; then
         if [[ -z $use_tmux ]]; then
-        exec screen
+            exec screen
         else
             exec tmux
         fi
     # Reattach to a running session.
     else
         if [[ -z $use_tmux ]]; then
-        exec screen -r $session
+            exec screen -r $session
         else
             exec tmux attach-session -t $session
         fi