mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 01:17:45 +00:00
parent
d3e720a045
commit
9eb2b69a51
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ function alias --description 'Creates a function wrapping a command'
|
|||
if not set -q argv[1]
|
||||
# Print the known aliases.
|
||||
for func in (functions -n)
|
||||
set -l output (functions $func | string match -r -- "^function .* --description 'alias (.*)'")
|
||||
set -l output (functions $func | string match -r -- "^function .* --description '?alias(.*)")
|
||||
if set -q output[2]
|
||||
set output (string replace -r -- '^'$func'[= ]' '' $output[2])
|
||||
echo alias $func (string escape -- $output[1])
|
||||
|
|
Loading…
Reference in a new issue