2 Commits

Author SHA1 Message Date
7d2c9aa49f Bump version to 0.1.2 2012-04-26 08:52:02 +01:00
b65355a35a Boolean logic is hard (and buggy? wtf?)
Fixed a bug with alias resolution not working, for reasons that are
currently beyond my understanding of shell scripting it would seem.
2012-04-26 08:51:49 +01:00
4 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ case "$command" in
* ) * )
# Lookup command, attempt to resolve as alias if fails # Lookup command, attempt to resolve as alias if fails
! command_path="$(command -v "tmuxifier-$command")" ! command_path="$(command -v "tmuxifier-$command")"
if [ ! -n $? ]; then if [ -z "$command_path" ]; then
resolved="$(tmuxifier-alias "$command")" resolved="$(tmuxifier-alias "$command")"
if [ ! -z "$resolved" ]; then if [ ! -z "$resolved" ]; then
! command_path="$(command -v "tmuxifier-$resolved")" ! command_path="$(command -v "tmuxifier-$resolved")"

View File

@@ -20,7 +20,7 @@ fi
# Lookup command, attempt to resolve as alias if fails # Lookup command, attempt to resolve as alias if fails
! command_path="$(command -v "tmuxifier-$command")" ! command_path="$(command -v "tmuxifier-$command")"
if [ ! -n $? ]; then if [ -z "$command_path" ]; then
resolved="$(tmuxifier-alias "$command")" resolved="$(tmuxifier-alias "$command")"
if [ ! -z "$resolved" ]; then if [ ! -z "$resolved" ]; then
! command_path="$(command -v "tmuxifier-$resolved")" ! command_path="$(command -v "tmuxifier-$resolved")"

View File

@@ -12,7 +12,7 @@ command="$1"
# Lookup command, attempt to resolve as alias if fails # Lookup command, attempt to resolve as alias if fails
! command_path="$(command -v "tmuxifier-$command")" ! command_path="$(command -v "tmuxifier-$command")"
if [ ! -n $? ]; then if [ -z "$command_path" ]; then
resolved="$(tmuxifier-alias "$command")" resolved="$(tmuxifier-alias "$command")"
if [ ! -z "$resolved" ]; then if [ ! -z "$resolved" ]; then
command="$resolved" command="$resolved"

View File

@@ -2,4 +2,4 @@
set -e set -e
[ -n "$TMUXIFIER_DEBUG" ] && set -x [ -n "$TMUXIFIER_DEBUG" ] && set -x
echo "0.1.1" echo "0.1.2"