add bwsesion function

This commit is contained in:
vonProteus 2025-03-22 18:17:22 +01:00
parent 5e3c18c6a0
commit be0536de0b
Signed by untrusted user who does not match committer: vonProteus
GPG Key ID: 65472F126055FF23
4 changed files with 11 additions and 4 deletions

9
zsh.d/50_bitwarden.zsh Normal file
View File

@ -0,0 +1,9 @@
# vim: ft=zsh
if command-exists "bw"; then
function bwsesion {
export BW_SESSION="$(bw unlock --raw)"
bw unlock --check
bw sync
}
fi

View File

@ -1,3 +1,4 @@
# vim: ft=zsh
if command-exists "kubectl"; then
source <(kubectl completion zsh)
@ -10,4 +11,3 @@ fi
if command-exists "minikube"; then
source <(minikube completion zsh)
fi

View File

@ -32,5 +32,3 @@ SPACESHIP_PROMPT_ORDER=(
# maven excluded
SPACESHIP_PACKAGE_ORDER=(npm lerna cargo composer julia gradle python dart)

2
zshrc
View File

@ -271,5 +271,5 @@ if ! zplug check --verbose; then
zplug install
fi
fi
zplug load
zplug load