diff options
author | Urbain Vaes <urbain@vaes.uk> | 2017-11-15 15:22:19 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2017-11-15 22:12:11 +0100 |
commit | a2cdbf8571ba6c542a0ca45e8adad206e970b05b (patch) | |
tree | e3a9f1bfd91dc9dede3b84050e7104afbffeb209 /bin | |
parent | 650540a998831ac7de9622c5d0d9ec3ef0930ec3 (diff) |
Make minor changes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bin/tmux_attach | 2 |
1 files changed, 1 insertions, 1 deletions
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:]]') |