From a2cdbf8571ba6c542a0ca45e8adad206e970b05b Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 15 Nov 2017 15:22:19 +0100 Subject: Make minor changes --- bin/bin/tmux_attach | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/bin/tmux_attach b/bin/bin/tmux_attach index 4938543..75fe649 100755 --- a/bin/bin/tmux_attach +++ b/bin/bin/tmux_attach @@ -1,7 +1,7 @@ #!/usr/bin/env bash SESSIONS=$(tmux list-sessions | cut -d':' -f1) -TMUXINATOR=$(tmuxinator list | sed '1d' | sed 's/ /\n/g') +TMUXINATOR=$(tmuxinator list | sed '1d' | sed 's/\s\+/\n/g') UNION=$(cat <(echo "$SESSIONS") <(echo "$TMUXINATOR") | sort | uniq | sed "/^$/d") SESSION=$(echo "$UNION" | dmenu -i -p "Session:" | tr -d '[[:space:]]') -- cgit v1.2.3