From 3ba2a037dea9155ebe29ee49eefa9f3f67d41c47 Mon Sep 17 00:00:00 2001 From: Amolith Date: Wed, 21 Jun 2023 17:11:31 -0400 Subject: [PATCH] chicken and egg problem, solve with config --- dot_config/zsh/private_dot_zshrc.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_config/zsh/private_dot_zshrc.tmpl b/dot_config/zsh/private_dot_zshrc.tmpl index 0b0e38d6c3e74489b927c34e42f5eab01cb15fae..b5e02201952f506adda00f8ebea7aac48926bbfc 100644 --- a/dot_config/zsh/private_dot_zshrc.tmpl +++ b/dot_config/zsh/private_dot_zshrc.tmpl @@ -144,7 +144,7 @@ export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring export BW_SESSION="{{ .bw_session }}" # Authenticate to OpenAI -export OPENAI_API_KEY="{{- secret "get" "password" "openai_api_key" -}}" +export OPENAI_API_KEY="{{- .openai_api_key -}}" #HYPHEN_INSENSITIVE="true" # Uncomment the following line if pasting URLs and other text is messed up. @@ -197,13 +197,13 @@ alias drafts='e $(rg -l "draft: true" $HOME/repos/personal/secluded | fzf --prev # Custom functions function pass() { - bw get password $password | xclip -selection clipboard + bw get password $@ | xclip -selection clipboard } function gi() { curl -sLw https://www.toptal.com/developers/gitignore/api/$@ ; } function noti() { - curl 'https://notify.nixnet.services/message?token={{- secret "get" "password" "gotify-token" -}}' -F "title=$1" -F "message=$2" -F "priority=4" + curl 'https://notify.nixnet.services/message?token={{- .gotify_token -}}' -F "title=$1" -F "message=$2" -F "priority=4" } # Hide the terminal when these apps are opened from a terminal function zathura() { devour zathura "$1" }