Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P307
swhpass alias
Active
Public
Actions
Authored by
ardumont
on Oct 4 2018, 3:00 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
# 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
Event Timeline
ardumont
created this paste.
Oct 4 2018, 3:00 PM
2018-10-04 15:00:53 (UTC+2)
Log In to Comment