mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d2c9aa49f | |||
| b65355a35a |
@@ -26,7 +26,7 @@ case "$command" in
|
||||
* )
|
||||
# Lookup command, attempt to resolve as alias if fails
|
||||
! command_path="$(command -v "tmuxifier-$command")"
|
||||
if [ ! -n $? ]; then
|
||||
if [ -z "$command_path" ]; then
|
||||
resolved="$(tmuxifier-alias "$command")"
|
||||
if [ ! -z "$resolved" ]; then
|
||||
! command_path="$(command -v "tmuxifier-$resolved")"
|
||||
|
||||
@@ -20,7 +20,7 @@ fi
|
||||
|
||||
# Lookup command, attempt to resolve as alias if fails
|
||||
! command_path="$(command -v "tmuxifier-$command")"
|
||||
if [ ! -n $? ]; then
|
||||
if [ -z "$command_path" ]; then
|
||||
resolved="$(tmuxifier-alias "$command")"
|
||||
if [ ! -z "$resolved" ]; then
|
||||
! command_path="$(command -v "tmuxifier-$resolved")"
|
||||
|
||||
@@ -12,7 +12,7 @@ command="$1"
|
||||
|
||||
# Lookup command, attempt to resolve as alias if fails
|
||||
! command_path="$(command -v "tmuxifier-$command")"
|
||||
if [ ! -n $? ]; then
|
||||
if [ -z "$command_path" ]; then
|
||||
resolved="$(tmuxifier-alias "$command")"
|
||||
if [ ! -z "$resolved" ]; then
|
||||
command="$resolved"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -e
|
||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||
|
||||
echo "0.1.1"
|
||||
echo "0.1.2"
|
||||
|
||||
Reference in New Issue
Block a user