mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Make better use of conditional operators and quote vars properly
This commit is contained in:
@@ -20,7 +20,7 @@ fi
|
||||
|
||||
! command_path="$(tmuxifier-resolve-command-path "$command")"
|
||||
|
||||
if [ ! -z "$command_path" ] && has-completions "$command_path"; then
|
||||
if [ -n "$command_path" ] && has-completions "$command_path"; then
|
||||
shift
|
||||
exec "$command_path" --complete "$@"
|
||||
fi
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||
|
||||
if [ ! -z $TMUX ]; then
|
||||
if [ -n "$TMUX" ]; then
|
||||
for item in $(tmux list-sessions -F "#{?session_attached,1,0}:#S"); do
|
||||
if [[ "$item" == "1:"* ]]; then
|
||||
echo ${item/1:/}
|
||||
|
||||
Reference in New Issue
Block a user