mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Avoid exiting with a cleaner syntax for commands that might fail
This commit is contained in:
@@ -24,13 +24,13 @@ case "$command" in
|
||||
;;
|
||||
|
||||
* )
|
||||
command_path="$(command -v "tmuxifier-$command" || true)"
|
||||
! command_path="$(command -v "tmuxifier-$command")"
|
||||
|
||||
# Attempt to resolve aliases
|
||||
if [ -z "$command_path" ]; then
|
||||
resolved="$(tmuxifier-alias "$command")"
|
||||
if [ ! -z "$resolved" ]; then
|
||||
command_path="$(command -v "tmuxifier-$resolved" || true)"
|
||||
! command_path="$(command -v "tmuxifier-$resolved")"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user