-
Notifications
You must be signed in to change notification settings - Fork 0
/
.coderc
executable file
·58 lines (49 loc) · 1.69 KB
/
.coderc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
#
# on login
# Go configuration
export GOPATH=$HOME/coding/go
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$GOPATH/bin
alias gotest='go test ./...'
# npm
# export npm_config_prefix="$HOME/.local/npm" # breaks nvm
export PATH=$npm_config_prefix:$HOME/.npm-global/bin:$PATH
# nvm
source /usr/share/nvm/init-nvm.sh
# ruby
export PATH=$PATH:$HOME/.local/share/gem/ruby/2.7.0/bin
# python
export PYTHONUSERBASE=$HOME/.local/lib/python3.10
export PATH=$PATH:$PYTHONUSERBASE/bin
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# if not running start go docs and disown
if type godoc > /dev/null; then
if ! pgrep -x "godoc" > /dev/null
then
background godoc -http=:6060
fi
fi
# Android
export ANT_HOME=/opt/ant
export MAVEN_HOME=/opt/maven
export GRADLE_HOME=$HOME/.gradle
export ANDROID_HOME=$HOME/Android/sdk
export ANDROID_SDK_HOME=$ANDROID_HOME
export ANDROID_SDK_ROOT=$ANDROID_HOME
export ANDROID_NDK_HOME=/opt/android-ndk
export PATH=$PATH:$ANDROID_HOME:$ANDROID_SDK_HOME/tools:$ANDROID_SDK_HOME/tools/bin
# arduino
export ARDUINO_DIR=$HOME/coding/arduino
export ARDMK_DIR=/usr/share/arduino
export AVR_TOOLS_DIR=/usr/share/arduino/hardware/archlinux-arduino/avr
# perl
PATH="$HOME/coding/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="$HOME/coding/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="$HOME/coding/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"$HOME/coding/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=$HOME/coding/perl5"; export PERL_MM_OPT;