mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
Privatise completion-only funtions
This commit is contained in:
parent
52dfb146d1
commit
926c1f1016
4
po/de.po
4
po/de.po
|
@ -3506,8 +3506,8 @@ msgstr ""
|
|||
msgid "Welcome to fish, the friendly interactive shell"
|
||||
msgstr "Willkommen zu fish, der freundlichen interaktiven Shell"
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:2
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:2
|
||||
msgid "%s: Too many arguments %s\\n"
|
||||
msgstr ""
|
||||
|
||||
|
|
4
po/en.po
4
po/en.po
|
@ -3497,8 +3497,8 @@ msgstr "SELinux context for the root inode of the filesystem"
|
|||
msgid "Welcome to fish, the friendly interactive shell"
|
||||
msgstr "Welcome to fish, the friendly interactive shell"
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:2
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:2
|
||||
msgid "%s: Too many arguments %s\\n"
|
||||
msgstr "%s: Too many arguments %s\\n"
|
||||
|
||||
|
|
4
po/fr.po
4
po/fr.po
|
@ -3711,8 +3711,8 @@ msgstr "Contexte SELinux pour l’i-nœud racine du système de fichiers"
|
|||
msgid "Welcome to fish, the friendly interactive shell"
|
||||
msgstr "Bienvenue dans fish, le shell amical et interactif"
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:2
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:2
|
||||
msgid "%s: Too many arguments %s\\n"
|
||||
msgstr "%s: Trop d'arguments %s\\n"
|
||||
|
||||
|
|
4
po/nb.po
4
po/nb.po
|
@ -3472,8 +3472,8 @@ msgstr ""
|
|||
msgid "Welcome to fish, the friendly interactive shell"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:2
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:2
|
||||
msgid "%s: Too many arguments %s\\n"
|
||||
msgstr ""
|
||||
|
||||
|
|
4
po/nn.po
4
po/nn.po
|
@ -3472,8 +3472,8 @@ msgstr ""
|
|||
msgid "Welcome to fish, the friendly interactive shell"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:2
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:2
|
||||
msgid "%s: Too many arguments %s\\n"
|
||||
msgstr ""
|
||||
|
||||
|
|
4
po/pl.po
4
po/pl.po
|
@ -3495,8 +3495,8 @@ msgstr ""
|
|||
msgid "Welcome to fish, the friendly interactive shell"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:2
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:2
|
||||
msgid "%s: Too many arguments %s\\n"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -3501,8 +3501,8 @@ msgstr ""
|
|||
msgid "Welcome to fish, the friendly interactive shell"
|
||||
msgstr "Bem-vindo ao fish, o friendly interactive shell"
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:2
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:2
|
||||
msgid "%s: Too many arguments %s\\n"
|
||||
msgstr ""
|
||||
|
||||
|
|
4
po/sv.po
4
po/sv.po
|
@ -3459,8 +3459,8 @@ msgstr ""
|
|||
msgid "Welcome to fish, the friendly interactive shell"
|
||||
msgstr "Välkommen till fish, det vänliga interaktiva skalet"
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:2
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:2
|
||||
msgid "%s: Too many arguments %s\\n"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -3471,8 +3471,8 @@ msgstr ""
|
|||
msgid "Welcome to fish, the friendly interactive shell"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/fish_md5.fish:2
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:1
|
||||
#: /tmp/fish/explicit/share/functions/__fish_md5.fish:2
|
||||
msgid "%s: Too many arguments %s\\n"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ function __fish_complete_ant_targets -d "Print list of targets from build.xml an
|
|||
set -l cache_dir "$XDG_CACHE_HOME/fish/ant_completions"
|
||||
mkdir -p $cache_dir
|
||||
|
||||
set -l cache_file $cache_dir/(fish_md5 -s $buildfile)
|
||||
set -l cache_file $cache_dir/(__fish_md5 -s $buildfile)
|
||||
if [ ! -s "$cache_file" ]
|
||||
# generate cache file if empty
|
||||
__parse_ant_targets_from_projecthelp $buildfile >$cache_file
|
||||
|
|
|
@ -45,7 +45,7 @@ function __cache_or_get_gradle_completion
|
|||
end
|
||||
mkdir -m 700 -p $XDG_CACHE_HOME/gradle-completions
|
||||
|
||||
set -l hashed_pwd (fish_md5 -s $PWD)
|
||||
set -l hashed_pwd (__fish_md5 -s $PWD)
|
||||
set -l gradle_cache_file $XDG_CACHE_HOME/gradle-completions/$hashed_pwd
|
||||
if not test -f $gradle_cache_file; or command test build.gradle -nt $gradle_cache_file
|
||||
command gradle -q tasks 2>/dev/null | string match -r '^[[:alnum:]]+ - .*' | string replace ' - ' \t >$gradle_cache_file
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# see also Fish's large set of completions for examples:
|
||||
# https://github.com/fish-shell/fish-shell/tree/master/share/completions
|
||||
|
||||
source $__fish_data_dir/functions/fish_npm_helper.fish
|
||||
source $__fish_data_dir/functions/__fish_npm_helper.fish
|
||||
set -l npm_install "npm install --global"
|
||||
|
||||
function __fish_npm_needs_command
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
source $__fish_data_dir/functions/fish_npm_helper.fish
|
||||
source $__fish_data_dir/functions/__fish_npm_helper.fish
|
||||
set -l yarn_add "yarn global add"
|
||||
|
||||
# Typically there is no need to check if (commandline -ct) begins with `--`
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function fish_md5
|
||||
function __fish_md5
|
||||
if type -q md5sum
|
||||
# GNU systems
|
||||
if set -q argv[2]
|
Loading…
Reference in New Issue
Block a user