2025-09-29 09:30:35 +02:00
|
|
|
# localization: skip(private)
|
2012-06-15 17:30:10 -07:00
|
|
|
function __fish_complete_command --description 'Complete using all available commands'
|
2024-04-08 22:46:50 +02:00
|
|
|
set -l ctoken "$(commandline -ct)"
|
2016-11-27 21:27:22 -08:00
|
|
|
switch $ctoken
|
|
|
|
|
case '*=*'
|
|
|
|
|
set ctoken (string split "=" -- $ctoken)
|
2023-09-10 18:11:23 +02:00
|
|
|
complete -C "$ctoken[2]"
|
2019-11-03 23:55:54 +01:00
|
|
|
case '-*' # do not try to complete options as commands
|
|
|
|
|
return
|
2016-11-27 21:27:22 -08:00
|
|
|
case '*'
|
2019-11-03 23:55:54 +01:00
|
|
|
complete -C "$ctoken"
|
2016-11-27 21:27:22 -08:00
|
|
|
end
|
2007-09-22 06:52:12 +10:00
|
|
|
end
|