1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-26 00:40:59 +02:00

Add doc for _autoenv_deauthorize

This commit is contained in:
Daniel Hahler 2014-12-04 10:39:46 +01:00
parent 5655e26d6a
commit 1bfed02bc2

View File

@ -152,6 +152,9 @@ _autoenv_authorize() {
_autoenv_hash_pair $env_file >> $AUTOENV_ENV_FILENAME
}
# Deauthorize a given filename, by removing it from the auth file.
# This uses `test -s` to only handle non-empty files, and a subshell to
# allow for writing to the same file again.
_autoenv_deauthorize() {
local env_file=${1:A}
if [[ -s $AUTOENV_ENV_FILENAME ]]; then