Add token stuff, zsh fixes, and csharp to doom
This commit is contained in:
parent
63d915439e
commit
f1baa2feb2
2 changed files with 14 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
14
.zshrc
14
.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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue