Move environment variables to global location
This commit is contained in:
parent
46faf047d7
commit
1e36e5689e
5 changed files with 18 additions and 8 deletions
|
@ -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'
|
||||
|
|
|
@ -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"
|
||||
|
|
6
modules/shell/files/environment.sh
Normal file
6
modules/shell/files/environment.sh
Normal 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'
|
|
@ -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"
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue