mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
use older expr syntax for backwards compatibility with the expr that comes with OSX
This commit is contained in:
parent
79a3fda9a8
commit
5bebbc641c
@ -1,6 +1,6 @@
|
|||||||
function balias --argument alias command
|
function balias --argument alias command
|
||||||
eval 'alias $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))
|
set command (expr substr + $command 6 (expr length $command))
|
||||||
end
|
end
|
||||||
complete -c $alias -xa "(
|
complete -c $alias -xa "(
|
||||||
|
Loading…
Reference in New Issue
Block a user