chicken and egg problem, solve with config

Amolith created

Change summary

dot_config/zsh/private_dot_zshrc.tmpl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Detailed changes

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" }