forked from cowboy/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc-custom
48 lines (38 loc) · 1.1 KB
/
.bashrc-custom
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
if [ -n "$TMUX" ]; then echo in tmux; fi
# Environment
export EDITOR="nvim"
export PATH=$HOME/bin:$HOME/bin/third-party:$HOME/bin/mine:$HOME/third-party/bin:$HOME/.bin:$PATH
# This used to allow urlview to work. It runs $BROWSER on the resulting URL, and this will make it hit the clipboard instead.
export BROWSER=yank2
###
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_TYPE=en_US.UTF-8
export PATH=$HOME/.bin:$PATH
if [[ $OSTYPE =~ ^darwin ]]; then
export JAVA_HOME="/usr/local/jdk-8u60-64"
export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:$PATH
else
true
# linuxbrew
#export PATH="/home/tph/.linuxbrew/bin:$PATH"
#export MANPATH="/home/tph/.linuxbrew/share/man:$MANPATH"
#export INFOPATH="/home/tph/.linuxbrew/share/info:$INFOPATH"
#export PATH="/home/tph/.linuxbrew/bin:$PATH"
fi
function gmtime {
date -d"@$1"
TZ=ET date -d"@$1"
date -u -d"@$1"
}
function h2d {
echo $((16#$1))
}
function d2h {
echo "obase=16; $1" | bc
}
function hgrep() {
sed -n "1p;/$@/p"
}
. /home/tph/.linuxbrew/etc/profile.d/piknik.sh