-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.fish
121 lines (104 loc) · 3.05 KB
/
config.fish
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
#set PATH_ORIG $PATH
#set -gx BASE_PATH /usr/sbin /usr/bin /sbin /bin
#set -gx PATH ~/bin /usr/local/bin /usr/local/sbin $BASE_PATH
if status --is-interactive
set PATH /usr/local/bin /usr/local/sbin $PATH
# if test -d ~/anaconda/bin
# set PATH ~/anaconda/bin $PATH
# set -x OPENSSL_CONF $HOME/anaconda/ssl/openssl.cnf
# end
if test -d ~/.rbenv
set PATH ~/.rbenv/bin $PATH
. (rbenv init -|psub)
end
if test -d ~/bin
set PATH ~/bin $PATH
end
for BINDIR in ~/.local/bin ~/.local/sbin
if test -d $BINDIR
set PATH $BINDIR $PATH
end
end
if test $COLORTERM = "gnome-terminal"
set -x TERM xterm-256color
end
if test -d ~/miniconda2
set PATH ~/miniconda2/bin $PATH
end
# If pyenv in the PATH
if test -d ~/.pyenv
set -gx PYENV_ROOT "$HOME/.pyenv"
set PATH $PYENV_ROOT/bin $PATH
. (pyenv init -|psub)
. (pyenv virtualenv-init -|psub)
end
if test -d /usr/local/share/scala-2.12.2/
set -gx SCALA_HOME /usr/local/share/scala-2.12.2
set PATH $SCALA_HOME/bin $PATH
end
for SBT_HOME in "/usr/local/sbt-1.0.0" "/usr/local/sbt"
echo "try SBT_HOME $SBT_HOME"
if test -d $SBT_HOME
echo "$SBT_HOME exists"
set -gx SBT_HOME $SBT_HOME
set PATH $SBT_HOME/bin $PATH
break;
end
end
if test -d /usr/local/spark-2.1.1-bin-hadoop2.7/
set -gx SPARK_HOME /usr/local/spark-2.1.1-bin-hadoop2.7
set PATH $SPARK_HOME/bin $PATH
end
for HADOOP_HOME in "/Users/ecerulm/.local/stow/hadoop-2.8.1/" "/usr/local/Cellar/hadoop/2.8.0" "/usr/local/hadoop-2.8.0"
if test -d $HADOOP_HOME
set -gx HADOOP_HOME $HADOOP_HOME
set -gx HADOOP_PREFIX $HADOOP_HOME
set -gx HADOOP_MAPRED_HOME $HADOOP_HOME
set -gx HADOOP_COMMON_HOME $HADOOP_HOME
set -gx HADOOP_HDFS_HOME $HADOOP_HOME
set -gx YARN_HOME $HADOOP_HOME
set -gx HADOOP_CONF_DIR $HADOOP_HOME/etc/hadoop
set -gx YARN_CONF_DIR $HADOOP_CONF_DIR
break
end
end
for HIVE_HOME in "/Users/ecerulm/.local/stow/apache-hive-2.3.0-bin/"
if test -d $HIVE_HOME
set -gx HIVE_HOME $HIVE_HOME
break
end
end
for HBASE_HOME in "/Users/ecerulm/.local/stow/hadoop-2.8.1/"
if test -d $HBASE_HOME
set -gx HBASE_HOME $HBASE_HOME
end
end
set -gx GOPATH ~/go
set PATH (go env GOPATH)/bin $PATH
# if test -d ~/local/stow/go1.8
# set -gx GOROOT "$HOME/local/stow/go1.8"
# set -gx GOPATH "$HOME/go"
# set PATH $GOROOT/bin $GOPATH/bin $PATH
# end
# If opam in the path
type opam >/dev/null ^/dev/null
if test $status -eq 0
. (opam config env|psub)
end
if test -e ~/.config/fish/apikeys
. ~/.config/fish/apikeys
end
end # is interactive
set -gx LC_CTYPE "en_US.UTF-8"
set -gx LC_ALL "en_US.UTF-8"
set BROWSER 'open' # needed for help command to work
set -gx EDITOR vim
set -gx PYTHONSTARTUP ~/.pythonrc
switch (uname)
case Linux
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
# case Darwin
# set -gx JAVA_HOME (/usr/libexec/java_home -v 1.8)
end
stty -ixon # Disable flow control