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-02 19:21:15 -03:00
Code Issues Packages Projects Releases Wiki Activity
Files
1701e2c558455e7e79d00a8529e4e8b46569f1cd
fish-shell/share/functions/__fish_complete_path.fish

15 lines
379 B
Fish
Raw Normal View History

__fish_complete_path: add new completion, mimics builtin path completion Completions can now be written which disable file completion and then selectively re-enable it using this function. Closes #834.
2014-09-28 16:35:14 +08:00
function __fish_complete_path --description "Complete using path"
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 -l target
set -l description
switch (count $argv)
case 0
# pass
case 1
set target "$argv[1]"
case 2 "*"
set target "$argv[1]"
set description "$argv[2]"
end
printf "%s\t$description\n" (command ls -dp "$target"*)
__fish_complete_path: add new completion, mimics builtin path completion Completions can now be written which disable file completion and then selectively re-enable it using this function. Closes #834.
2014-09-28 16:35:14 +08:00
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 101ms 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