aboutsummaryrefslogtreecommitdiff
path: root/session
diff options
context:
space:
mode:
Diffstat (limited to 'session')
-rwxr-xr-xsession4
1 files changed, 2 insertions, 2 deletions
diff --git a/session b/session
index c78631a..e39e406 100755
--- a/session
+++ b/session
@@ -184,9 +184,9 @@ function __session_open {
# Dispatch
if [ "$BASENAME" == "session-list" ]; then
__session_list
-elif [ ! -z "$1" ] && [ "$BASENAME" == "session-chooser" ]; then
+elif [ "$BASENAME" == "session-chooser" ]; then
__session_chooser
-elif [ ! -z "$1" ] && [ "$BASENAME" == "terminal-session-chooser" ]; then
+elif [ "$BASENAME" == "terminal-session-chooser" ]; then
terminal session-chooser
elif [ ! -z "$1" ] && echo "$1" | grep -q -- '--list'; then
__session_list