update
This commit is contained in:
parent
cfb63db1ad
commit
6d25dbec6e
17 changed files with 86 additions and 13 deletions
|
|
@ -1,6 +1,7 @@
|
|||
export ZSH="$HOME/.oh-my-zsh"
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
export POWERSHELL_TELEMETRY_OPTOUT=1
|
||||
export DOTNET_ROOT="/usr/share/dotnet"
|
||||
export PROMPT_EOL_MARK=''
|
||||
export FZF_DEFAULT_OPTS="--preview 'bat --color=always {}'"
|
||||
export EDITOR='nvim'
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ set-cred ()
|
|||
printf "$(bw get password cli-ollama-token)" | secret-tool store --label='Ollama Token for CLI' 'token' 'OLLAMA_TOKEN'
|
||||
printf "$(bw get password cli-litellm-token)" | secret-tool store --label='LiteLLM Token for CLI' 'token' 'LITELLM_TOKEN'
|
||||
printf "$(bw get password cli-openai)" | secret-tool store --label='OpenAI Token for CLI' 'token' 'OPENAI_TOKEN'
|
||||
printf "$(bw get password GEMINI_TOKEN)" | secret-tool store --label='Gemini Token for CLI' 'token' 'GEMINI_TOKEN'
|
||||
|
||||
unset BW_SESSION
|
||||
}
|
||||
|
|
@ -16,6 +17,7 @@ set-env ()
|
|||
export OLLAMA_TOKEN="$(secret-tool lookup token OLLAMA_TOKEN)"
|
||||
export LITELLM_TOKEN="$(secret-tool lookup token LITELLM_TOKEN)"
|
||||
export OPENAI_TOKEN="$(secret-tool lookup token OPENAI_TOKEN)"
|
||||
export GEMINI_TOKEN="$(secret-tool lookup token GEMINI_TOKEN)"
|
||||
}
|
||||
|
||||
clear-env ()
|
||||
|
|
@ -24,6 +26,7 @@ clear-env ()
|
|||
unset OLLAMA_TOKEN
|
||||
unset LITELLM_TOKEN
|
||||
unset OPENAI_TOKEN
|
||||
unset GEMINI_TOKEN
|
||||
}
|
||||
|
||||
tmux-new () {
|
||||
|
|
@ -53,3 +56,7 @@ decode-jwtpayload(){
|
|||
decode-jwtheader(){
|
||||
decode_base64_url $(echo -n $1 | cut -d "." -f '1') | jq .
|
||||
}
|
||||
|
||||
nvim-new () {
|
||||
~/.config/scripts/nvim.sh $1
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue