From 5bebbc641c6c837a01427987068c670485d7472d Mon Sep 17 00:00:00 2001 From: Dave Yarwood Date: Sat, 28 Feb 2015 14:10:31 -0500 Subject: [PATCH] use older expr syntax for backwards compatibility with the expr that comes with OSX --- plugins/better-alias/balias.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/better-alias/balias.fish b/plugins/better-alias/balias.fish index d818791..1d14075 100644 --- a/plugins/better-alias/balias.fish +++ b/plugins/better-alias/balias.fish @@ -1,6 +1,6 @@ function balias --argument alias command eval 'alias $alias $command' - if expr match $command '^sudo '>/dev/null + if expr $command : '^sudo '>/dev/null set command (expr substr + $command 6 (expr length $command)) end complete -c $alias -xa "(