Skip to content

Commit 396e804

Browse files
committed
Add update to Fish completions
1 parent 9e30218 commit 396e804

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

completions/asdf.fish

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ function __fish_asdf_plugin_list_all
4242
asdf plugin-list-all 2> /dev/null
4343
end
4444

45+
# update
46+
complete -f -c asdf -n '__fish_asdf_needs_command' -a update -d "Update asdf"
47+
complete -f -c asdf -n '__fish_asdf_using_command update; and __fish_asdf_arg_number 2' -l "head" -d "Updates to master HEAD"
48+
4549
# plugin-add completion
4650
complete -f -c asdf -n '__fish_asdf_needs_command' -a plugin-add -d "Add git repo as plugin"
4751
complete -f -c asdf -n '__fish_asdf_using_command plugin-add; and __fish_asdf_arg_number 2' -a '(__fish_asdf_plugin_list_all | grep -v \'*\' | awk \'{ print $1 }\')'

0 commit comments

Comments
 (0)