Refactor to support multiple OS's
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
26
home/.dotfiles/environment
Normal file
26
home/.dotfiles/environment
Normal file
@@ -0,0 +1,26 @@
|
||||
export EDITOR='vim'
|
||||
export VISUAL='code'
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
# AWS
|
||||
if [ -f ~/.aws/profile ]; then
|
||||
export AWS_PROFILE=$(cat ~/.aws/profile)
|
||||
export AWS_DEFAULT_REGION=eu-west-1
|
||||
export AWS_REGION=eu-west-1
|
||||
fi
|
||||
|
||||
# Node
|
||||
export NODE_ENV=localhost
|
||||
[ -f ~/.npmrc ] && export NPM_TOKEN=`head -n 1 ~/.npmrc | sed 's~//registry.npmjs.org/:_authToken=\(.*\)~\1~'`
|
||||
|
||||
# Go
|
||||
export GOPATH=$HOME/goworkspace
|
||||
export GO111MODULE=on
|
||||
|
||||
# Starship
|
||||
export STARSHIP_CONFIG=~/.starship/config.toml
|
||||
export STARSHIP_LOG=error
|
||||
|
||||
# Bat
|
||||
export BAT_THEME="Monokai Extended Light"
|
||||
export BAT_STYLE="grid,header"
|
Reference in New Issue
Block a user