Skip to content
Snippets Groups Projects
Commit 5bebbc64 authored by Dave Yarwood's avatar Dave Yarwood
Browse files

use older expr syntax for backwards compatibility with the expr that comes with OSX

parent 79a3fda9
Branches
No related merge requests found
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 "(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment