-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.exports
135 lines (115 loc) Β· 4.4 KB
/
.exports
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# History (src: https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows)
export HISTCONTROL=ignoredups:erasedups # no duplicate entries
export HISTSIZE=100000 # big big history
export HISTFILESIZE=$HISTSIZE
# Save and reload the history after each command finishes
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
# Prefer US English and use UTF-8
#export LANG="en_US.UTF-8";
export LC_ALL="de_DE.UTF-8";
export LC_NUMERIC="de_DE@currency=EUR";
export LC_TIME="de_DE@currency=EUR";
export LC_COLLATE="de_DE@currency=EUR";
export LC_MONETARY="de_DE@currency=EUR";
export LC_MESSAGES="de_DE@currency=EUR";
# Always enable colored `grep` output
export GREP_OPTIONS="--color=auto";
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
export DOTFILESDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
# Make Sublime the default editor
export EDITOR="nano"
# This makes it easyer to use colors in bash-output
if tput setaf 1 &> /dev/null; then
export bold=$(tput bold);
export reset=$(tput sgr0);
# Solarized colors, taken from http://git.io/solarized-colors.
export black=$(tput setaf 0);
export blue=$(tput setaf 33);
export cyan=$(tput setaf 37);
export green=$(tput setaf 64);
export orange=$(tput setaf 166);
export purple=$(tput setaf 125);
export red=$(tput setaf 124);
export violet=$(tput setaf 61);
export white=$(tput setaf 15);
export yellow=$(tput setaf 136);
else
export bold='';
export reset="\e[0m";
export black="\e[1;30m";
export blue="\e[1;34m";
export cyan="\e[1;36m";
export green="\e[1;32m";
export orange="\e[1;33m";
export purple="\e[1;35m";
export red="\e[1;31m";
export violet="\e[1;35m";
export white="\e[1;37m";
export yellow="\e[1;33m";
fi;
export danger="${red}";
export warn="${yellow}";
export info="${cyan}";
export success="${green}";
# Theese are needed to install node from brew according to this: http://madebyhoundstooth.com/blog/install-node-with-homebrew-on-os-x/
#export NODE_PATH="/usr/local/lib/node"
# Local node path if exists
export PATH=~/.npm-global/bin:$PATH
#export PATH="/usr/local/share/npm/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PROJECTDIRS=(
~/S/$1
~/Documents/$1
)
# Link Homebrew casks in `/Applications` rather than `~/Applications`
export HOMEBREW_CASK_OPTS="--appdir=/Applications";
export P4DIFF=/usr/local/bin/ksdiff
export P4MERGE=/usr/local/bin/ksdiff
export P4CONFIG=~/p4config.txt
export GIT_ICON_ARRAY=(
"π bugfix | tests"
"π
ui"
"β¨ feature"
"π story"
" - NOTHING - "
"π¬ text"
"π¨ lint | code-structure"
"π docs | readme"
"β»οΈ refactoring"
"π§ work in progress"
"π₯ removing code or files"
"β‘οΈ performance"
"π database | api"
"π¦ npm | node"
"π§ scripts or config"
# NOTE: More of them here: gitmoji --list
)
export PATH="/usr/local/opt/postgresql@12/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/postgresql@12/lib"
export CPPFLAGS="-I/usr/local/opt/postgresql@12/include"
export PKG_CONFIG_PATH="/usr/local/opt/postgresql@12/lib/pkgconfig"
# Angular
#export NG_BUILD_PROFILING=1
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
# NOTE: Want a newer java version? Try something like this:
# brew cask install adoptopenjdk/openjdk/adoptopenjdk11
export PATH="/Users/$(whoami)/.jenv/bin:$PATH"
# export JAVA_HOME=$(/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home)
# export ANDROID_HOME="/opt/android-sdk"
# export ANDROID_HOME="/opt/homebrew/Caskroom/android-sdk/4333796"
export ANDROID_HOME="/opt/homebrew/share/android-commandlinetools"
export ANDROID_SDK_ROOT="/opt/homebrew/share/android-commandlinetools"
export PATH="/opt/homebrew/share/android-commandlinetools/cmdline-tools/homebrew/bin/:$PATH"
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
export PATH="$PATH:$ANDROID_HOME/emulator"
alias emu="$ANDROID_HOME/tools/emulator" # https://stackoverflow.com/a/43809095
# export PATH=$PATH:$ANDROID_HOME/platform-tools
# export PATH=$PATH:$ANDROID_HOME/tools
# export PATH=$PATH:/opt/homebrew/bin/adb
# export PATH=$PATH:/Users/nils/Library/Android/sdk