-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from hjpotter92/update/aliases
Add completions for aliases when defined for zsh.
- Loading branch information
Showing
1 changed file
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is not needed and might be wrong in some cases (where the completion function for
$name
is not_$name
). If you remove this, the function of name$name
will automatically get the completion of the command$name
. Try it yourself with a mock function:Also you can't define a variable of the name
path
, that conflicts with the array form of$PATH
. You're also not using it anywhere.Finally, if you're just defining the function, you don't need the
setup_alias
function, just do this inside thefor
:The curly braces in the
$commands
variable are important. If theksh_arrays
options is set it will error out without them.