Use string split in alias.

This commit is contained in:
Markus Reiter 2017-02-10 13:51:05 +01:00 committed by Fabian Homborg
parent af7f5f42b6
commit 3e35e6e488

View file

@ -21,7 +21,7 @@ function alias --description 'Creates a function wrapping a command'
end
return 0
case 1
set -l tmp (string replace -r "=" '\n' -- $argv) ""
set -l tmp (string split -m 1 "=" -- $argv) ""
set name $tmp[1]
set body $tmp[2]