From: Simon Ruderich Date: Tue, 7 Aug 2012 12:43:24 +0000 (+0200) Subject: zsh/rc: Fix indentation. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=b55cf4872f4553ae4a3a28f34123e4b5c786392e;p=config%2Fdotfiles.git zsh/rc: Fix indentation. --- diff --git a/zsh/rc b/zsh/rc index a1acba5..779d0dd 100644 --- 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