1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-18 16:26:50 +00:00

feat: add cargo

This commit is contained in:
Luna 2020-08-31 20:53:10 +02:00
parent f06f26e83c
commit 7df838f2c1
No known key found for this signature in database
GPG key ID: 05246084ED6DAD21
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,5 @@
# Set Devs Tools
# [] = {flutter, go, dotnet, npm}
# [] = {flutter, go, dotnet, npm, cargo}
export devTools=""
#Uncomment if u want this env:
# export GOPATH=""

View file

@ -2,6 +2,7 @@
source $OTHER/env.zsh
grep -q 'flutter' <<< $devTools && export PATH="$PATH:$HOME/.development/flutter/bin"
grep -q 'dotnet' <<< $devTools && export PATH="$PATH:$HOME/.dotnet"
grep -q 'cargo' <<< $devTools && source $HOME/.cargo/env
# https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally
grep -q 'npm' <<< $devTools && export PATH="$PATH:$HOME/.npm-global/bin"
grep -q 'go' <<< $devTools && export PATH="$PATH:/usr/local/go/bin:$(/usr/local/go/bin/go env GOPATH)/bin"