mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Use new tmuxifier-resolve-command-path everywhere
This commit is contained in:
@@ -24,14 +24,7 @@ case "$command" in
|
||||
;;
|
||||
|
||||
* )
|
||||
# Lookup command, attempt to resolve as alias if fails
|
||||
! command_path="$(command -v "tmuxifier-$command")"
|
||||
if [ -z "$command_path" ]; then
|
||||
resolved="$(tmuxifier-alias "$command")"
|
||||
if [ ! -z "$resolved" ]; then
|
||||
! command_path="$(command -v "tmuxifier-$resolved")"
|
||||
fi
|
||||
fi
|
||||
! command_path="$(tmuxifier-resolve-command-path "$command")"
|
||||
|
||||
if [ -z "$command_path" ]; then
|
||||
echo "tmuxifier: no such command '$command'" >&2
|
||||
|
||||
Reference in New Issue
Block a user