Add pw function for pass almost auto completion
This commit is contained in:
parent
49fa6671d1
commit
021416102f
1 changed files with 6 additions and 1 deletions
|
@ -39,6 +39,11 @@ alias :q=' exit'
|
||||||
alias :x=' exit'
|
alias :x=' exit'
|
||||||
alias cd..='cd ..'
|
alias cd..='cd ..'
|
||||||
|
|
||||||
|
pw() {
|
||||||
|
export PASSWORD_STORE_CLIP_TIME=8
|
||||||
|
pass -c2 "$1"; sleep 5; pass -c3 "$1"; sleep 5; pass -c "$1"
|
||||||
|
}
|
||||||
|
|
||||||
clitip() {
|
clitip() {
|
||||||
curl -s https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md |
|
curl -s https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md |
|
||||||
sed '/cowsay[.]png/d' |
|
sed '/cowsay[.]png/d' |
|
||||||
|
@ -48,7 +53,7 @@ clitip() {
|
||||||
xmlstarlet unesc | fmt -80 | iconv -t US
|
xmlstarlet unesc | fmt -80 | iconv -t US
|
||||||
}
|
}
|
||||||
|
|
||||||
GIT_REPOS=(~/SetupCockpit ~/Keepass ~/Lessons/* ~/PersonalScripts ~/RootMe ~/SRC/*)
|
GIT_REPOS=(~/.password-store ~/SetupCockpit ~/Keepass ~/Lessons/* ~/PersonalScripts ~/RootMe ~/SRC/*)
|
||||||
|
|
||||||
cockpit() { # enable pass-like commands (ex: cockpit git push)
|
cockpit() { # enable pass-like commands (ex: cockpit git push)
|
||||||
local start_dir="$PWD"
|
local start_dir="$PWD"
|
||||||
|
|
Loading…
Add table
Reference in a new issue