Logo
Explore Help
Sign In
h/fish-shell
1
Fork 0
You've already forked fish-shell
mirror of https://github.com/fish-shell/fish-shell.git synced 2026-05-05 13:31:15 -03:00
Code Issues Packages Projects Releases Wiki Activity
Files
c9cc2a4069da6c7f231810df5c729887e0b32c2b
fish-shell/share/functions/__fish_use_subcommand.fish

14 lines
327 B
Fish
Raw Normal View History

Mark private functions that don't need localization See the next commit. Part of #11833
2025-09-29 09:30:35 +02:00
# localization: skip(private)
Don't turn of file completion in svn completions if given an unknown subcommand darcs-hash:20060827144853-ac50b-d09576fd6984eb18b06e0e7b1d8a88aa7b9d1df4.gz
2006-08-28 00:48:53 +10:00
function __fish_use_subcommand -d "Test if a non-switch argument has been given in the current commandline"
completion: adopt commandline -x replacing deprecated -o This gives us more accurate completions because completion scripts get expanded paths
2024-01-22 07:42:45 +01:00
set -l cmd (commandline -pxc)
reformat all fish scripts I hate doing this but I am tired of touching a fish script as part of some change and having `make style` radically change it. Which makes editing fish scripts more painful than it needs to be. It is time to do a wholesale reformatting of these scripts to conform to the documented style as implemented by the `fish_indent` program.
2016-11-27 21:27:22 -08:00
set -e cmd[1]
for i in $cmd
switch $i
case '-*'
continue
end
return 1
end
return 0
Don't turn of file completion in svn completions if given an unknown subcommand darcs-hash:20060827144853-ac50b-d09576fd6984eb18b06e0e7b1d8a88aa7b9d1df4.gz
2006-08-28 00:48:53 +10:00
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 246ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API