Move environment variables to global location

This commit is contained in:
Jake Howard 2017-11-16 09:27:02 +00:00
parent 46faf047d7
commit 1e36e5689e
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 18 additions and 8 deletions

View file

@ -52,4 +52,3 @@ recreatedb() {
}
# colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

View file

@ -4,12 +4,6 @@ case $- in
*) return;;
esac
# Export some variables
export ANDROID_HOME=/opt/android-sdk
export EDITOR=/bin/nano
export TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S'
export DOTFILES=~/.dotfiles
export QT_QPA_PLATFORMTHEME=gtk2
# Extend path
export PATH=${PATH}:${ANDROID_HOME}/tools
@ -17,6 +11,9 @@ export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export PATH=${PATH}:/opt/genymobile/genymotion
export PATH=${PATH}:${HOME}/.bin
export DOTFILES=~/.dotfiles
# bash aliases
alias refresh="cd $PWD > /dev/null"
alias c="clear"

View file

@ -0,0 +1,6 @@
# Export some variables
ANDROID_HOME=/opt/android-sdk
EDITOR=/bin/nano
TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S'
QT_QPA_PLATFORMTHEME=gtk2
GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

View file

@ -37,6 +37,5 @@ alias nrm="npm run mocha"
alias nvmu="nvm use"
# React-native extras
export REACT_EDITOR=atom
alias rnl="adb logcat | grep ReactNative"
alias rn="react-native"

View file

@ -46,4 +46,13 @@ class shell {
mode => '0755',
recurse => remote
}
file { 'Global Environment':
ensure => file,
mode => '0644',
owner => 'root',
group => 'root',
source => 'puppet:///modules/shell/environment.sh',
path => '/etc/environment'
}
}