aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsession2
1 files changed, 1 insertions, 1 deletions
diff --git a/session b/session
index d2e5da5..be32912 100755
--- a/session
+++ b/session
@@ -144,7 +144,7 @@ function __session_chooser {
read -rep "Choose session: " n
if [ ! -z "$n" ]; then
- session="$(__session_list | grep -E "(^$n.| $n:)" | sed -e "s/^$n. //" | cut -d : -f 1)"
+ session="$(__session_list | grep -E "(^$n.| $n:)" | sed -e "s/^[0-9]*. //" | cut -d : -f 1)"
if [ ! -z "$session" ]; then
__session_open $session