-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.zsh
55 lines (45 loc) · 1008 Bytes
/
env.zsh
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
export EDITOR=/usr/bin/nvim
export VISUAl=/usr/bin/nvim
export RANGER_LOAD_DEFAULT_RC="false"
export TERM=xterm-256color
export TERM_ITALICS=true
export ZSH_AUTOSUGGEST_USE_ASYNC=1
export ZSH_AUTOSUGGEST_MANUAL_REBIND=1
export GOPROXY=https://goproxy.cn,direct
ros1_off() {
unset ROS_VERSION
unset ROS_DISTRO
unset ROS_PYTHON_VERSION
}
ros2_off() {
unset ROS_VERSION
unset ROS_DISTRO
unset ROS_DOMAIN_ID
unset ROS_PYTHON_VERSION
}
ros1_on() {
ros2_off
export ROS_VERSION=1
export ROS_DISTRO=noetic
export ROS_PYTHON_VERSION=3
source /opt/ros/noetic/setup.zsh
}
ros2_on() {
ros1_off
export ROS_VERSION=2
export ROS_DISTRO=humble
export ROS_DOMAIN_ID=42
export ROS_PYTHON_VERSION=3
source /opt/ros/humble/setup.zsh
}
proxy_on () {
export https_proxy=http://127.0.0.1:7890
export http_proxy=http://127.0.0.1:7890
export all_proxy=socks5://127.0.0.1:7890
echo "HTTP Proxy on"
}
proxy_off () {
unset http_proxy
unset https_proxy
echo "HTTP Proxy off"
}