summaryrefslogtreecommitdiffstats
path: root/fish/completions
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--fish/completions/bcompiler.fish7
-rw-r--r--fish/completions/catnote.fish1
-rw-r--r--fish/completions/fisher.fish1
-rw-r--r--fish/completions/hl-monthly-for-account.fish1
-rw-r--r--fish/completions/hl-weekly-for-account.fish1
-rw-r--r--fish/completions/pass.fish117
-rw-r--r--fish/completions/pipenv.fish1
-rw-r--r--fish/completions/poetry.fish145
-rw-r--r--fish/completions/twdft.fish6
9 files changed, 280 insertions, 0 deletions
diff --git a/fish/completions/bcompiler.fish b/fish/completions/bcompiler.fish
new file mode 100644
index 0000000..57d6433
--- /dev/null
+++ b/fish/completions/bcompiler.fish
@@ -0,0 +1,7 @@
+complete -c "bcompiler" -s h -l help -d "Get help for bcompiler"
+complete -c "bcompiler" -s c -l clean-datamap -d "Clean the datamap"
+complete -c "bcompiler" -s v -l version -d "Ask for version"
+complete -c "bcompiler" -s p -l parse -d "Parse master.csv and transpose" -a "(find ~/Documents/bcompiler/source -maxdepth 1 | grep master)"
+complete -c "bcompiler" -s a -l all -d "Create new populated templates from master.csv"
+complete -c "bcompiler" -l compare -d "Compare old master with current one" -a "old_master"
+complete -c "bcompiler" -s ll -d "Debugging options" -a "DEBUG INFO WARNING ERROR CRITICAL"
diff --git a/fish/completions/catnote.fish b/fish/completions/catnote.fish
new file mode 100644
index 0000000..d4d7165
--- /dev/null
+++ b/fish/completions/catnote.fish
@@ -0,0 +1 @@
+complete -c "catnote" -a "(find /home/lemon/Nextcloud/Textnotes -type f)"
diff --git a/fish/completions/fisher.fish b/fish/completions/fisher.fish
new file mode 100644
index 0000000..61a3810
--- /dev/null
+++ b/fish/completions/fisher.fish
@@ -0,0 +1 @@
+fisher --complete
diff --git a/fish/completions/hl-monthly-for-account.fish b/fish/completions/hl-monthly-for-account.fish
new file mode 100644
index 0000000..1c38c98
--- /dev/null
+++ b/fish/completions/hl-monthly-for-account.fish
@@ -0,0 +1 @@
+complete -c "hl-monthly-for-account" -d "hledger register by month for account" -a "(hledger account)"
diff --git a/fish/completions/hl-weekly-for-account.fish b/fish/completions/hl-weekly-for-account.fish
new file mode 100644
index 0000000..bd0e801
--- /dev/null
+++ b/fish/completions/hl-weekly-for-account.fish
@@ -0,0 +1 @@
+complete -c "hl-weekly-for-account" -d "hledger register by month for account" -a "(hledger account)"
diff --git a/fish/completions/pass.fish b/fish/completions/pass.fish
new file mode 100644
index 0000000..3e70af1
--- /dev/null
+++ b/fish/completions/pass.fish
@@ -0,0 +1,117 @@
+#!/usr/bin/env fish
+
+# Copyright (C) 2012-2014 Dmitry Medvinsky <me@dmedvinsky.name>. All Rights Reserved.
+# This file is licensed under the GPLv2+. Please see COPYING for more information.
+
+set -l PROG 'pass'
+
+function __fish_pass_get_prefix
+ set -l prefix "$PASSWORD_STORE_DIR"
+ if [ -z "$prefix" ]
+ set prefix "$HOME/.password-store"
+ end
+ echo "$prefix"
+end
+
+function __fish_pass_needs_command
+ [ (count (commandline -opc)) -eq 1 ]
+end
+
+function __fish_pass_uses_command
+ set -l cmd (commandline -opc)
+ if [ (count $cmd) -gt 1 ]
+ if [ $argv[1] = $cmd[2] ]
+ return 0
+ end
+ end
+ return 1
+end
+
+function __fish_pass_print_gpg_keys
+ gpg2 --list-keys | grep uid | sed 's/.*<\(.*\)>/\1/'
+end
+
+function __fish_pass_print
+ set -l ext $argv[1]
+ set -l strip $argv[2]
+ set -l prefix (__fish_pass_get_prefix)
+ set -l matches $prefix/**$ext
+ printf '%s\n' $matches | sed "s#$prefix/\(.*\)$strip#\1#"
+end
+
+function __fish_pass_print_entry_dirs
+ __fish_pass_print "/"
+end
+
+function __fish_pass_print_entries
+ __fish_pass_print ".gpg" ".gpg"
+end
+
+function __fish_pass_print_entries_and_dirs
+ __fish_pass_print_entry_dirs
+ __fish_pass_print_entries
+end
+
+function __fish_pass_git_complete
+ set -l prefix (__fish_pass_get_prefix)
+ set -l git_cmd (commandline -opc) (commandline -ct)
+ set -e git_cmd[1 2] # Drop "pass git".
+ complete -C"git -C $prefix $git_cmd"
+end
+
+complete -c $PROG -f -n '__fish_pass_needs_command' -a help -d 'Command: show usage help'
+complete -c $PROG -f -n '__fish_pass_needs_command' -a version -d 'Command: show program version'
+
+complete -c $PROG -f -n '__fish_pass_needs_command' -a init -d 'Command: initialize new password storage'
+complete -c $PROG -f -n '__fish_pass_uses_command init' -s p -l path -d 'Assign gpg-id for specified sub folder of password store'
+
+complete -c $PROG -f -n '__fish_pass_needs_command' -a ls -d 'Command: list passwords'
+complete -c $PROG -f -n '__fish_pass_uses_command ls' -a "(__fish_pass_print_entry_dirs)"
+
+complete -c $PROG -f -n '__fish_pass_needs_command' -a insert -d 'Command: insert new password'
+complete -c $PROG -f -n '__fish_pass_uses_command insert' -s e -l echo -d 'Echo the password on console'
+complete -c $PROG -f -n '__fish_pass_uses_command insert' -s m -l multiline -d 'Provide multiline password entry'
+complete -c $PROG -f -n '__fish_pass_uses_command insert' -s f -l force -d 'Do not prompt before overwritting'
+complete -c $PROG -f -n '__fish_pass_uses_command insert' -a "(__fish_pass_print_entry_dirs)"
+
+complete -c $PROG -f -n '__fish_pass_needs_command' -a generate -d 'Command: generate new password'
+complete -c $PROG -f -n '__fish_pass_uses_command generate' -s n -l no-symbols -d 'Do not use special symbols'
+complete -c $PROG -f -n '__fish_pass_uses_command generate' -s c -l clip -d 'Put the password in clipboard'
+complete -c $PROG -f -n '__fish_pass_uses_command generate' -s f -l force -d 'Do not prompt before overwritting'
+complete -c $PROG -f -n '__fish_pass_uses_command generate' -s i -l in-place -d 'Replace only the first line with the generated password'
+complete -c $PROG -f -n '__fish_pass_uses_command generate' -a "(__fish_pass_print_entry_dirs)"
+
+complete -c $PROG -f -n '__fish_pass_needs_command' -a mv -d 'Command: rename existing password'
+complete -c $PROG -f -n '__fish_pass_uses_command mv' -s f -l force -d 'Force rename'
+complete -c $PROG -f -n '__fish_pass_uses_command mv' -a "(__fish_pass_print_entries_and_dirs)"
+
+complete -c $PROG -f -n '__fish_pass_needs_command' -a cp -d 'Command: copy existing password'
+complete -c $PROG -f -n '__fish_pass_uses_command cp' -s f -l force -d 'Force copy'
+complete -c $PROG -f -n '__fish_pass_uses_command cp' -a "(__fish_pass_print_entries_and_dirs)"
+
+complete -c $PROG -f -n '__fish_pass_needs_command' -a rm -d 'Command: remove existing password'
+complete -c $PROG -f -n '__fish_pass_uses_command rm' -s r -l recursive -d 'Remove password groups recursively'
+complete -c $PROG -f -n '__fish_pass_uses_command rm' -s f -l force -d 'Force removal'
+complete -c $PROG -f -n '__fish_pass_uses_command rm' -a "(__fish_pass_print_entries_and_dirs)"
+
+complete -c $PROG -f -n '__fish_pass_needs_command' -a edit -d 'Command: edit password using text editor'
+complete -c $PROG -f -n '__fish_pass_uses_command edit' -a "(__fish_pass_print_entries)"
+
+complete -c $PROG -f -n '__fish_pass_needs_command' -a show -d 'Command: show existing password'
+complete -c $PROG -f -n '__fish_pass_uses_command show' -s c -l clip -d 'Put password in clipboard'
+complete -c $PROG -f -n '__fish_pass_uses_command show' -a "(__fish_pass_print_entries)"
+# When no command is given, `show` is defaulted.
+complete -c $PROG -f -n '__fish_pass_needs_command' -s c -l clip -d 'Put password in clipboard'
+complete -c $PROG -f -n '__fish_pass_needs_command' -a "(__fish_pass_print_entries)"
+complete -c $PROG -f -n '__fish_pass_uses_command -c' -a "(__fish_pass_print_entries)"
+complete -c $PROG -f -n '__fish_pass_uses_command --clip' -a "(__fish_pass_print_entries)"
+
+complete -c $PROG -f -n '__fish_pass_needs_command' -a git -d 'Command: execute a git command'
+complete -c $PROG -f -n '__fish_pass_uses_command git' -a '(__fish_pass_git_complete)'
+complete -c $PROG -f -n '__fish_pass_needs_command' -a find -d 'Command: find a password file or directory matching pattern'
+complete -c $PROG -f -n '__fish_pass_needs_command' -a grep -d 'Command: search inside of decrypted password files for matching pattern'
+complete -c $PROG -f -n '__fish_pass_uses_command grep' -a '(begin
+ set -l cmd (commandline -opc) (commandline -ct)
+ set -e cmd[1 2] # Drop "pass grep".
+ complete -C"grep $cmd"
+end)'
diff --git a/fish/completions/pipenv.fish b/fish/completions/pipenv.fish
new file mode 100644
index 0000000..01ca3be
--- /dev/null
+++ b/fish/completions/pipenv.fish
@@ -0,0 +1 @@
+eval (pipenv --completion)
diff --git a/fish/completions/poetry.fish b/fish/completions/poetry.fish
new file mode 100644
index 0000000..2d3f76c
--- /dev/null
+++ b/fish/completions/poetry.fish
@@ -0,0 +1,145 @@
+function __fish_poetry_3a61cd031c563512_complete_no_subcommand
+ for i in (commandline -opc)
+ if contains -- $i about add build cache:clear check config debug:info debug:resolve develop help init install list lock new publish remove run script search self:update shell show update version
+ return 1
+ end
+ end
+ return 0
+end
+
+# global options
+complete -c poetry -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -l ansi -d 'Force ANSI output'
+complete -c poetry -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -l help -d 'Display this help message'
+complete -c poetry -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -l no-ansi -d 'Disable ANSI output'
+complete -c poetry -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -l no-interaction -d 'Do not ask any interactive question'
+complete -c poetry -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -l quiet -d 'Do not output any message'
+complete -c poetry -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -l verbose -d 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug'
+complete -c poetry -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -l version -d 'Display this application version'
+
+# commands
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a about -d 'Short information about Poetry.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a add -d 'Add a new dependency to pyproject.toml.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a build -d 'Builds a package, as a tarball and a wheel by default.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a cache:clear -d 'Clears poetry\'s cache.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a check -d 'Checks the validity of the pyproject.toml file.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a config -d 'Sets/Gets config options.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a debug:info -d 'Shows debug information.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a debug:resolve -d 'Debugs dependency resolution.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a develop -d 'Installs the current project in development mode. (Deprecated)'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a help -d 'Displays help for a command'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a init -d 'Creates a basic pyproject.toml file in the current directory.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a install -d 'Installs the project dependencies.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a list -d 'Lists commands'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a lock -d 'Locks the project dependencies.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a new -d 'Creates a new Python project at <path>'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a publish -d 'Publishes a package to a remote repository.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a remove -d 'Removes a package from the project dependencies.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a run -d 'Runs a command in the appropriate environment.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a script -d 'Executes a script defined in pyproject.toml. (Deprecated)'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a search -d 'Searches for packages on remote repositories.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a self:update -d 'Updates poetry to the latest version.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a shell -d 'Spawns a shell within the virtual environment.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a show -d 'Shows information about packages.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a update -d 'Update dependencies as according to the pyproject.toml file.'
+complete -c poetry -f -n '__fish_poetry_3a61cd031c563512_complete_no_subcommand' -a version -d 'Bumps the version of the project.'
+
+# command options
+
+# about
+
+# add
+complete -c poetry -A -n '__fish_seen_subcommand_from add' -l allow-prereleases -d 'Accept prereleases.'
+complete -c poetry -A -n '__fish_seen_subcommand_from add' -l dev -d 'Add package as development dependency.'
+complete -c poetry -A -n '__fish_seen_subcommand_from add' -l dry-run -d 'Outputs the operations but will not execute anything (implicitly enables --verbose).'
+complete -c poetry -A -n '__fish_seen_subcommand_from add' -l extras -d 'Extras to activate for the dependency.'
+complete -c poetry -A -n '__fish_seen_subcommand_from add' -l git -d 'The url of the Git repository.'
+complete -c poetry -A -n '__fish_seen_subcommand_from add' -l optional -d 'Add as an optional dependency.'
+complete -c poetry -A -n '__fish_seen_subcommand_from add' -l path -d 'The path to a dependency.'
+complete -c poetry -A -n '__fish_seen_subcommand_from add' -l platform -d 'Platforms for which the dependencies must be installed.'
+complete -c poetry -A -n '__fish_seen_subcommand_from add' -l python -d 'Python version( for which the dependencies must be installed.'
+
+# build
+complete -c poetry -A -n '__fish_seen_subcommand_from build' -l format -d 'Limit the format to either wheel or sdist.'
+
+# cache:clear
+complete -c poetry -A -n '__fish_seen_subcommand_from cache:clear' -l all -d 'Clear all entries in cache.'
+
+# check
+
+# config
+complete -c poetry -A -n '__fish_seen_subcommand_from config' -l list -d 'List configuration settings'
+complete -c poetry -A -n '__fish_seen_subcommand_from config' -l unset -d 'Unset configuration setting'
+
+# debug:info
+
+# debug:resolve
+complete -c poetry -A -n '__fish_seen_subcommand_from debug:resolve' -l extras -d 'Extras to activate for the dependency.'
+complete -c poetry -A -n '__fish_seen_subcommand_from debug:resolve' -l install -d 'Show what would be installed for the current system.'
+complete -c poetry -A -n '__fish_seen_subcommand_from debug:resolve' -l python -d 'Python version(s) to use for resolution.'
+complete -c poetry -A -n '__fish_seen_subcommand_from debug:resolve' -l tree -d 'Displays the dependency tree.'
+
+# develop
+
+# help
+complete -c poetry -A -n '__fish_seen_subcommand_from help' -l format -d 'The output format (txt, json, or md)'
+complete -c poetry -A -n '__fish_seen_subcommand_from help' -l raw -d 'To output raw command help'
+
+# init
+complete -c poetry -A -n '__fish_seen_subcommand_from init' -l author -d 'Author name of the package'
+complete -c poetry -A -n '__fish_seen_subcommand_from init' -l dependency -d 'Package to require with an optional version constraint, e.g. requests:^2.10.0 or requests=2.11.1'
+complete -c poetry -A -n '__fish_seen_subcommand_from init' -l description -d 'Description of the package'
+complete -c poetry -A -n '__fish_seen_subcommand_from init' -l dev-dependency -d 'Package to require for development with an optional version constraint, e.g. requests:^2.10.0 or requests=2.11.1'
+complete -c poetry -A -n '__fish_seen_subcommand_from init' -l license -d 'License of the package'
+complete -c poetry -A -n '__fish_seen_subcommand_from init' -l name -d 'Name of the package'
+
+# install
+complete -c poetry -A -n '__fish_seen_subcommand_from install' -l develop -d 'Install given packages in development mode.'
+complete -c poetry -A -n '__fish_seen_subcommand_from install' -l dry-run -d 'Outputs the operations but will not execute anything (implicitly enables --verbose).'
+complete -c poetry -A -n '__fish_seen_subcommand_from install' -l extras -d 'Extra sets of dependencies to install.'
+complete -c poetry -A -n '__fish_seen_subcommand_from install' -l no-dev -d 'Do not install dev dependencies.'
+
+# list
+complete -c poetry -A -n '__fish_seen_subcommand_from list' -l format -d 'The output format (txt, json, or md)'
+complete -c poetry -A -n '__fish_seen_subcommand_from list' -l raw -d 'To output raw command list'
+
+# lock
+
+# new
+complete -c poetry -A -n '__fish_seen_subcommand_from new' -l name -d 'Set the resulting package name.'
+complete -c poetry -A -n '__fish_seen_subcommand_from new' -l src -d 'Use the src layout for the project.'
+
+# publish
+complete -c poetry -A -n '__fish_seen_subcommand_from publish' -l build -d 'Build the package before publishing.'
+complete -c poetry -A -n '__fish_seen_subcommand_from publish' -l password -d 'The password to access the repository.'
+complete -c poetry -A -n '__fish_seen_subcommand_from publish' -l repository -d 'The repository to publish the package to.'
+complete -c poetry -A -n '__fish_seen_subcommand_from publish' -l username -d 'The username to access the repository.'
+
+# remove
+complete -c poetry -A -n '__fish_seen_subcommand_from remove' -l dev -d 'Removes a package from the development dependencies.'
+complete -c poetry -A -n '__fish_seen_subcommand_from remove' -l dry-run -d 'Outputs the operations but will not execute anything (implicitly enables --verbose).'
+
+# run
+
+# script
+
+# search
+complete -c poetry -A -n '__fish_seen_subcommand_from search' -l only-name -d 'Search only in name.'
+
+# self:update
+complete -c poetry -A -n '__fish_seen_subcommand_from self:update' -l preview -d 'Install prereleases.'
+
+# shell
+
+# show
+complete -c poetry -A -n '__fish_seen_subcommand_from show' -l all -d 'Show all packages (even those not compatible with current system).'
+complete -c poetry -A -n '__fish_seen_subcommand_from show' -l latest -d 'Show the latest version.'
+complete -c poetry -A -n '__fish_seen_subcommand_from show' -l no-dev -d 'Do not list the dev dependencies.'
+complete -c poetry -A -n '__fish_seen_subcommand_from show' -l outdated -d 'Show the latest version but only for packages that are outdated.'
+complete -c poetry -A -n '__fish_seen_subcommand_from show' -l tree -d 'List the dependencies as a tree.'
+
+# update
+complete -c poetry -A -n '__fish_seen_subcommand_from update' -l dry-run -d 'Outputs the operations but will not execute anything (implicitly enables --verbose).'
+complete -c poetry -A -n '__fish_seen_subcommand_from update' -l lock -d 'Do not perform install (only update the lockfile).'
+complete -c poetry -A -n '__fish_seen_subcommand_from update' -l no-dev -d 'Do not install dev dependencies.'
+
+# version
diff --git a/fish/completions/twdft.fish b/fish/completions/twdft.fish
new file mode 100644
index 0000000..7474227
--- /dev/null
+++ b/fish/completions/twdft.fish
@@ -0,0 +1,6 @@
+#complete -c twdft -l create_inspection -d "Port Facility Name" -a "(twdft complete_site (commandline -cp))"
+#complete -f -c twdft -d "Create inspection" -a "(twdft complete_site)"
+complete -f -c twdft -d "Port Facility" -a "(twdft_complete_site)"
+complete -f -c twdft -l inspectiondate -d "Inspection date"
+complete -f -c twdft -l inspectiontime -d "Inspection time"
+complete -f -c twdft -l opencard -d "Open inspection card in vim"