<feed xmlns='http://www.w3.org/2005/Atom'>
<title>password-store/src/completion, branch master</title>
<subtitle>Simple password manager using gpg and ordinary unix directories.</subtitle>
<id>https://git.zx2c4.com/password-store/atom/src/completion?h=master</id>
<link rel='self' href='https://git.zx2c4.com/password-store/atom/src/completion?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/password-store/'/>
<updated>2021-09-23T21:25:28Z</updated>
<entry>
<title>Replace 'which' with POSIX equivalent 'command -v'</title>
<updated>2021-09-23T21:25:28Z</updated>
<author>
<name>Ayush Agarwal</name>
<email>ayush@fastmail.in</email>
</author>
<published>2021-09-15T17:17:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/password-store/commit/?id=a80a3189458a86f29f61d980b4ad977594199864'/>
<id>urn:sha1:a80a3189458a86f29f61d980b4ad977594199864</id>
<content type='text'>
The 'which' command is an external command that must be called each and
every time pass is used. 'which' is also not mentioned in the README as
one of the dependencies that might be needed to run pass.

Instead of 'which', we can use the POSIX compatible and shell built-in
'command -v'. It saves pass from making an external call and is,
arguably, more reliable than using 'which' as mentioned in the following
link.
</content>
</entry>
<entry>
<title>Remove shebang from fish completion</title>
<updated>2021-06-14T22:13:46Z</updated>
<author>
<name>Dan Čermák</name>
<email>dcermak@suse.de</email>
</author>
<published>2021-06-14T21:03:48Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/password-store/commit/?id=3dd14690c7c81ac80e32e942cf5976732faf0fb3'/>
<id>urn:sha1:3dd14690c7c81ac80e32e942cf5976732faf0fb3</id>
<content type='text'>
Afaik fish shell completions don't need a shebang
(plus the script is not executable anyway)
</content>
</entry>
<entry>
<title>Escape colons in zsh completion to show url ports</title>
<updated>2021-06-11T16:33:29Z</updated>
<author>
<name>Guido Cella</name>
<email>guidocella91@gmail.com</email>
</author>
<published>2020-07-14T04:35:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/password-store/commit/?id=ff5ac38f7984d7b3d2912dba106baa2fed52e530'/>
<id>urn:sha1:ff5ac38f7984d7b3d2912dba106baa2fed52e530</id>
<content type='text'>
zsh completion cuts filenames after colons, for example port numbers.
This is fixed by escaping colons.
This will also escape backslashes after the first.
</content>
</entry>
<entry>
<title>fish-completion: don't print full path when PASSWORD_STORE_DIR is set</title>
<updated>2021-05-18T21:03:08Z</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2021-05-18T20:59:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/password-store/commit/?id=4e73cdc4c376ad61d2e4858bc87cf01eab0dd403'/>
<id>urn:sha1:4e73cdc4c376ad61d2e4858bc87cf01eab0dd403</id>
<content type='text'>
"__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.
</content>
</entry>
<entry>
<title>fish-completion: reuse "git" and "grep" completions</title>
<updated>2020-06-25T21:43:30Z</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:11Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/password-store/commit/?id=06f499994071bb6131244218b25d637103afe1d5'/>
<id>urn:sha1:06f499994071bb6131244218b25d637103afe1d5</id>
<content type='text'>
This makes fish complete commands starting with "pass git" as if they were
starting with "git".
</content>
</entry>
<entry>
<title>fish-completion: don't erase existing completions for pass</title>
<updated>2020-06-25T21:43:20Z</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/password-store/commit/?id=e50b18a049c54fb9b8dc2507238c08c1c8bd3fa9'/>
<id>urn:sha1:e50b18a049c54fb9b8dc2507238c08c1c8bd3fa9</id>
<content type='text'>
fish only loads pass.fish once, so there is no point to erasing them.
</content>
</entry>
<entry>
<title>fish-completion: force some variables to be script-local</title>
<updated>2020-06-25T21:43:10Z</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/password-store/commit/?id=3439edd8e6e3455c4735b91561372254a3c9fda4'/>
<id>urn:sha1:3439edd8e6e3455c4735b91561372254a3c9fda4</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>fish-completion: support completions for wrapper commands</title>
<updated>2020-06-25T21:43:00Z</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/password-store/commit/?id=9ec2990e96031e617237ac4881288974a69b7522'/>
<id>urn:sha1:9ec2990e96031e617237ac4881288974a69b7522</id>
<content type='text'>
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&gt;=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
</content>
</entry>
<entry>
<title>fish-completion: remove obsolete flag</title>
<updated>2020-06-25T21:42:42Z</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/password-store/commit/?id=3be8496c7488bce380e8072a98a353f9b90875a1'/>
<id>urn:sha1:3be8496c7488bce380e8072a98a353f9b90875a1</id>
<content type='text'>
The -A/--authoritative flag no longer has an effect since fish 2.5 which
was released in 2017.
</content>
</entry>
<entry>
<title>fish-completion: avoid printing errors with an empty password store</title>
<updated>2020-06-25T21:42:32Z</updated>
<author>
<name>Johannes Altmanninger</name>
<email>aclopte@gmail.com</email>
</author>
<published>2020-06-25T21:41:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/password-store/commit/?id=46d26994d0ff6b7fdcc2b043b0186703c0026b06'/>
<id>urn:sha1:46d26994d0ff6b7fdcc2b043b0186703c0026b06</id>
<content type='text'>
Reproduce by typing "pass &lt;TAB&gt;" 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.
</content>
</entry>
</feed>
