update
This commit is contained in:
parent
35682e2046
commit
09c6ec89f5
4 changed files with 73 additions and 33 deletions
13
.zshrc
13
.zshrc
|
|
@ -151,17 +151,15 @@ source ~/.bw.completions.zsh
|
|||
|
||||
unlockbw ()
|
||||
{
|
||||
export BW_SESSION="$(bw unlock --raw)"
|
||||
export BW_SESSION="$(bw unlock $(secret-tool lookup drive bitwarden) --raw)"
|
||||
export GITLAB_TOKEN="$(bw get password cli-gitlab)"
|
||||
export VAULT_UNSEAL="$(bw get password cli-vault-unseal)"
|
||||
export VAULT_TOKEN="$(bw get password vault.internal.durp.info)"
|
||||
export OLLAMA_TOKEN="$(bw get password cli-ollama-token)"
|
||||
}
|
||||
lockbw ()
|
||||
{
|
||||
unset BW_SESSION
|
||||
unset GITLAB_TOKEN
|
||||
unset VAULT_UNSEAL
|
||||
unset VAULT_TOKEN
|
||||
unset OLLAMA_TOKEN
|
||||
}
|
||||
|
||||
unlockvault() {
|
||||
|
|
@ -182,6 +180,11 @@ unlockvault() {
|
|||
EOF
|
||||
}
|
||||
|
||||
tmux-new () {
|
||||
local -r name=${(U)1-"$(basename $(pwd))"}
|
||||
tmux new-session -d -s $name
|
||||
}
|
||||
|
||||
load-profile () {
|
||||
ansible-playbook /home/user/.dotfiles/ansible/.config/ansible/local.yml -K
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue