m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/completion/pass.fish-completion
AgeCommit message (Collapse)Author
2021-06-15Remove shebang from fish completionDan Čermák
Afaik fish shell completions don't need a shebang (plus the script is not executable anyway)
2021-05-18fish-completion: don't print full path when PASSWORD_STORE_DIR is setJohannes Altmanninger
"__fish_pass_print" enumerates all files in the password store and uses sed to strip their common prefix - the password store directory. If $PASSWORD_STORE_DIR had a trailing slash, sed would fail to remove the prefix. Fix this by canonicalizing $PASSWORD_STORE_DIR.
2020-06-25fish-completion: reuse "git" and "grep" completionsJohannes Altmanninger
This makes fish complete commands starting with "pass git" as if they were starting with "git".
2020-06-25fish-completion: don't erase existing completions for passJohannes Altmanninger
fish only loads pass.fish once, so there is no point to erasing them.
2020-06-25fish-completion: force some variables to be script-localJohannes Altmanninger
Unfortunately, a command "set x" without explicit scope overwrites the variable "x" in the innermost scope it is defined in, if any. This can cause problems if the user defines the variable "x" as global or universal variable (which is visible in all fishes). Make sure to define a local variable so we use that.
2020-06-25fish-completion: support completions for wrapper commandsJohannes Altmanninger
There is no point to checking the command name, fish already does that. Additionally fish knows about commands that "wrap" pass; those commands should inherit pass's completions. This commit enables fish>=3.1.0 to provide proper completions for this function: alias p="PASSWORD_STORE_DIR=$HOME/.my-passwords pass" or, equivalently, function p --wraps "PASSWORD_STORE_DIR=$HOME/.my-passwords pass" PASSWORD_STORE_DIR=$HOME/.my-passwords pass $argv end
2020-06-25fish-completion: remove obsolete flagJohannes Altmanninger
The -A/--authoritative flag no longer has an effect since fish 2.5 which was released in 2017.
2020-06-25fish-completion: avoid printing errors with an empty password storeJohannes Altmanninger
Reproduce by typing "pass <TAB>" in a shell launched like: HOME=`mktemp -d` fish Fish prints an error on failing globs - except when used in one of the commands "set", "for" or "count". Also quotes are unnecessary here.
2018-02-19fish: reduce completion runtimesMathis Antony
Fish completion spends most of the time in calls to `sed` in for loops over entries and directories. This patch removes the repeated calls to `sed`. Signed-off-by: Mathis Antony <sveitser@gmail.com>
2014-05-08completion: add new generate flagsJason A. Donenfeld
2014-04-18reencrypt: remove option, do automaticallyJason A. Donenfeld
2014-04-18reencryption: add to completion filesJason A. Donenfeld
2014-04-17move/copy: always reencrypt passwords at destinationJason A. Donenfeld
2014-04-17mv: Add pass mv/rename supportJason A. Donenfeld
Based-on-work-by: Matthieu Weber <mweber@free.fr> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2014-04-15grep: add to completion filesJason A. Donenfeld
2014-04-15find: add find/search commandJason A. Donenfeld
This relies on a patched version of tree to work, unfortunately. Hopefully upstream will accept our patch. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2014-03-24Add some commonly used completions for `pass git`Dmitry Medvinsky
2014-03-24Update copyright years and email addressDmitry Medvinsky
2014-03-24Add `-p` `--path` option completion for `pass init`Dmitry Medvinsky
2014-03-22Makefile: do not use recursion and organizeJason A. Donenfeld