update
This commit is contained in:
parent
e1c96bc1d2
commit
317c7d208d
16 changed files with 699 additions and 255 deletions
23
.config/shell/functions.zsh
Normal file
23
.config/shell/functions.zsh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
unlockbw ()
|
||||
{
|
||||
export BW_SESSION="$(bw unlock $(secret-tool lookup drive bitwarden) --raw)"
|
||||
export GITLAB_TOKEN="$(bw get password cli-gitlab)"
|
||||
export OLLAMA_TOKEN="$(bw get password cli-ollama-token)"
|
||||
}
|
||||
lockbw ()
|
||||
{
|
||||
unset BW_SESSION
|
||||
unset GITLAB_TOKEN
|
||||
unset OLLAMA_TOKEN
|
||||
}
|
||||
|
||||
tmux-new () {
|
||||
local -r name=${(U)1-"$(basename $(pwd))"}
|
||||
tmux new-session -d -s $name
|
||||
tmux switch-client -t $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