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:
@@ -18,14 +18,7 @@ if [ -z "$command" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 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" ] && has-completions "$command_path"; then
|
||||
shift
|
||||
|
||||
Reference in New Issue
Block a user