-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_bash_profile
More file actions
41 lines (33 loc) · 949 Bytes
/
Copy path_bash_profile
File metadata and controls
41 lines (33 loc) · 949 Bytes
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
alias ll="ls -l -a -G"
alias cip="curl cip.cc"
alias iso_date="date '+%Y-%m-%d %H:%M:%S'"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
function tag-commit() {
git tag -a "release-vv1-$(git rev-parse --short HEAD)" -m "$(git rev-parse HEAD)"
git push origin --tags
}
# java
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
alias jshell10=`/usr/libexec/java_home -v 10`/bin/jshell
export PATH="/usr/local/sbin:$PATH"
# golang
export GOPROXY=https://goproxy.cn
# cargo
export CARGO_HTTP_MULTIPLEXING=false
# proxy
function proxy() {
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;
npm config set proxy "http://127.0.0.1:1087";
npm config set https-proxy "http://127.0.0.1:1087";
}
function unproxy() {
unset http_proxy;
unset https_proxy;
npm config delete proxy;
npm config delete https-proxy;
}
# ip
function ip() {
echo $(ifconfig | grep 'inet 10' | awk '{print $2}')
}