mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-12 07:57:22 +00:00
Awk Indent Fix
Indented the awk script for command description. darcs-hash:20060208004201-494f2-2f08b1b7999c690bd1815b6c1702529c932b364d.gz
This commit is contained in:
parent
0b044b785a
commit
47b652c76e
1 changed files with 8 additions and 1 deletions
|
@ -265,7 +265,14 @@ end
|
|||
#
|
||||
|
||||
function __fish_describe_command -d "Command used to find descriptions for commands"
|
||||
apropos $argv | awk -v FS=" +- +" '{split($1, names, ", "); for (name in names) if (names[name] ~ /^'"$argv"'.* *\([18]\)/) { sub("\\([18]\\)", "", names[name]); print names[name] "\t" $2; } }'
|
||||
apropos $argv | awk -v FS=" +- +" '{
|
||||
split($1, names, ", ");
|
||||
for (name in names)
|
||||
if (names[name] ~ /^'"$argv"'.* *\([18]\)/) {
|
||||
sub("\\([18]\\)", "", names[name]);
|
||||
print names[name] "\t" $2;
|
||||
}
|
||||
}'
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue