Page MenuHomeSoftware Heritage
Paste P307

swhpass alias
ActivePublic

Authored by ardumont on Oct 4 2018, 3:00 PM.
# swhpass and completion mechanism
SWH_PASSWORD_STORE_DIR=${HOME}/work/inria/repo/swh/credentials/
function swhpass() {
PASSWORD_STORE_DIR=$SWH_PASSWORD_STORE_DIR pass $@
}
_swhpass() {
# trailing / is required for the password-store dir.
PASSWORD_STORE_DIR=$SWH_PASSWORD_STORE_DIR _pass
}
compdef _swhpass swhpass