mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Use string split
in alias
.
This commit is contained in:
parent
af7f5f42b6
commit
3e35e6e488
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ function alias --description 'Creates a function wrapping a command'
|
||||||
end
|
end
|
||||||
return 0
|
return 0
|
||||||
case 1
|
case 1
|
||||||
set -l tmp (string replace -r "=" '\n' -- $argv) ""
|
set -l tmp (string split -m 1 "=" -- $argv) ""
|
||||||
set name $tmp[1]
|
set name $tmp[1]
|
||||||
set body $tmp[2]
|
set body $tmp[2]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue