Avoid exiting with a cleaner syntax for commands that might fail

This commit is contained in:
2012-04-26 02:22:40 +01:00
parent 0d3cfb2494
commit 855c522cf0
4 changed files with 7 additions and 7 deletions

View File

@@ -157,7 +157,7 @@ initialize_session() {
# created, the session already exists, and we'll need to specifically switch
# to it here.
finalize_and_go_to_session() {
tmux kill-window -t "$session:99" 2>/dev/null || true
! tmux kill-window -t "$session:99" 2>/dev/null
if [[ "$(tmuxifier-current-session)" != "$session" ]]; then
__go_to_session
fi