Privatise completion-only funtions

This commit is contained in:
Jason Nader 2020-03-02 01:22:10 +09:00 committed by ridiculousfish
parent 52dfb146d1
commit 926c1f1016
15 changed files with 23 additions and 23 deletions

View file

@ -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 ""

View file

@ -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"

View file

@ -3711,8 +3711,8 @@ msgstr "Contexte SELinux pour li-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"

View file

@ -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 ""

View file

@ -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 ""

View file

@ -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 ""

View file

@ -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 ""

View file

@ -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 ""

View file

@ -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 ""

View file

@ -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

View 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

View 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

View file

@ -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 `--`

View file

@ -1,4 +1,4 @@
function fish_md5
function __fish_md5
if type -q md5sum
# GNU systems
if set -q argv[2]