From f1baa2feb29deaf5ce124a3546d99031c2b39f5c Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Wed, 6 Sep 2023 10:54:20 -0700 Subject: [PATCH] Add token stuff, zsh fixes, and csharp to doom --- .doom.d/init.el | 2 +- .zshrc | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.doom.d/init.el b/.doom.d/init.el index 07ec5e7..dd41ca2 100644 --- a/.doom.d/init.el +++ b/.doom.d/init.el @@ -117,7 +117,7 @@ ;;common-lisp ; if you've seen one lisp, you've seen them all ;;coq ; proofs-as-programs ;;crystal ; ruby at the speed of c - ;;csharp ; unity, .NET, and mono shenanigans + csharp ; unity, .NET, and mono shenanigans ;;data ; config/data formats ;;(dart +flutter) ; paint ui and not much else ;;elixir ; erlang done right diff --git a/.zshrc b/.zshrc index c016c34..ec87667 100644 --- a/.zshrc +++ b/.zshrc @@ -9,7 +9,7 @@ fi typeset -ga preexec_functions typeset -ga precmd_functions typeset -ga chpwd_functions -fpath=(/usr/local/share/zsh-completions $fpath) +fpath=(/usr/local/share/zsh-completions /opt/homebrew/share/zsh/site-functions $fpath) #typeset -u fpath # Options @@ -291,8 +291,20 @@ if [ -d ~/.asdf ] ; then . $HOME/.asdf/asdf.sh fi +export PATH=$(go env GOPATH)/bin:$PATH + [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh +getadsktoken() { + TEMP_TOKEN=$(echo -n ${ADSK_HUNNER_CLI_CLIENT_ID}:${ADSK_HUNNER_CLI_CLIENT_SECRET} | base64) + curl -s 'https://developer.api.autodesk.com/authentication/v2/token' \ + -H 'Content-Type: application/x-www-form-urlencoded' \ + -H 'Accept: application/json' \ + -H "Authorization: Basic ${TEMP_TOKEN}" \ + -d 'grant_type=client_credentials' \ + -d 'scope=data:read' \ + | jq -r '.access_token' +} # load-nvm() { # export NVM_DIR="$HOME/.nvm"