Skip to content

Commit

Permalink
chore: update fish conf
Browse files Browse the repository at this point in the history
  • Loading branch information
shmileee committed Nov 20, 2022
1 parent 12cf96f commit bed75f4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ end

# toggle between audio devices
alias s 'command switch-audio'

7 changes: 7 additions & 0 deletions config/private_dot_config/private_fish/conf.d/functions.fish
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ function sudo
command sudo $argv
end
end

# export vault token
function vault_auth
set --local env "$argv[1]"
set -gx VAULT_ADDR https://$env.vault.tuadm.net:8200
set -gx TF_VAR_vault_token (vault login -method=oidc -path=okta role=admin -format=json 2>/dev/null | jq '.auth.client_token' -r)
end
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ set -x GOPATH $HOME/go

fish_add_path $GOPATH/bin
fish_add_path $HOME/.local/bin
fish_add_path $HOME/bin
fish_add_path $HOME/.cargo/bin
fish_add_path /opt/homebrew/bin

set -x GODEBUG asyncpreemptoff=1

set -gx HOMEBREW_NO_ANALYTICS 1

# fzf
Expand Down

0 comments on commit bed75f4

Please sign in to comment.