✨ (merlin_worker.zsh): add proxy configuration and aliases for enabling/disabling proxy settings in zsh environment
This commit is contained in:
43
zshrc/merlin_devbox.zsh
Normal file
43
zshrc/merlin_devbox.zsh
Normal file
@@ -0,0 +1,43 @@
|
||||
# proxy
|
||||
export HF_ENDPOINT=http://huggingface-proxy-sg.byted.org
|
||||
export http_proxy=http://sys-proxy-rd-relay.byted.org:8118
|
||||
export https_proxy=http://sys-proxy-rd-relay.byted.org:8118
|
||||
export no_proxy=byted.org
|
||||
|
||||
alias proxy_on='export http_proxy=http://sys-proxy-rd-relay.byted.org:8118; export https_proxy=http://sys-proxy-rd-relay.byted.org:8118; export no_proxy=byted.org'
|
||||
alias proxy_off='unset http_proxy; unset https_proxy; unset no_proxy'
|
||||
|
||||
# Merlin devbox specific aliases
|
||||
alias cp='cp -i'
|
||||
alias mv='mv -i'
|
||||
alias m='more'
|
||||
alias ll='ls -l'
|
||||
alias lsl='ls -lrt'
|
||||
alias lm='ls -al|more'
|
||||
alias l='ls -lrt'
|
||||
alias c='cat'
|
||||
alias v='vi'
|
||||
alias cl='clear'
|
||||
alias pg='ps -ef| grep '
|
||||
|
||||
# Set terminal type to xterm for better compatibility with terminal features
|
||||
# export TERM=xterm
|
||||
|
||||
# Customize command prompt to show: hostname(TCE_info):current_directory$
|
||||
# \h = hostname, \W = current working directory basename, \$ = $ for user/# for root
|
||||
# export PS1='\h($TCE_PSM@$TCE_CLUSTER:$TCE_ENV):\W\$ '
|
||||
|
||||
source /workspace/mlx/../vscode/prep_env.sh
|
||||
# sh -c /opt/tiger/mlx_deploy/greeting.sh
|
||||
source /opt/tiger/mlx_deploy/mlxrc
|
||||
if [ -f /opt/tiger/mlx_deploy/pythonpath_rc ]; then
|
||||
source /opt/tiger/mlx_deploy/pythonpath_rc
|
||||
fi
|
||||
if command -v import_hdfs_envs.sh > /dev/null 2>&1 && [ -z ]; then source import_hdfs_envs.sh; fi
|
||||
if [ -f /opt/tiger/rh2_bashrc ]; then
|
||||
source /opt/tiger/rh2_bashrc
|
||||
fi
|
||||
source /opt/tiger/mlx_deploy/userrc
|
||||
|
||||
# Custom configurations
|
||||
source /mnt/bn/qingyuhao-devbox/mlx/users/qingyuhao/playground/scripts/rc.sh
|
||||
@@ -1,3 +1,12 @@
|
||||
# proxy
|
||||
export HF_ENDPOINT=http://huggingface-proxy-sg.byted.org
|
||||
export http_proxy=http://sys-proxy-rd-relay.byted.org:8118
|
||||
export https_proxy=http://sys-proxy-rd-relay.byted.org:8118
|
||||
export no_proxy=byted.org
|
||||
|
||||
alias proxy_on='export http_proxy=http://sys-proxy-rd-relay.byted.org:8118; export https_proxy=http://sys-proxy-rd-relay.byted.org:8118; export no_proxy=byted.org'
|
||||
alias proxy_off='unset http_proxy; unset https_proxy; unset no_proxy'
|
||||
|
||||
# specific aliases
|
||||
alias save_log=/opt/tiger/rh2/rh2/init/log.sh
|
||||
alias stdout='tail -f /var/log/tiger/stdout'
|
||||
@@ -15,12 +24,3 @@ export PYSPARK_PYTHON=/usr/bin/python3
|
||||
export PYTHONPATH=::/opt/tiger/arnold_toolbox:/opt/tiger/rh2:/opt/tiger/rh2:/opt/tiger/pyutil:/python:/python/lib/py4j-0.10.9-src.zip
|
||||
export PATH=/opt/tiger/arnold/arnold_entrypoint/debugger/cloudide/release-standalone/bin/remote-cli:$PATH
|
||||
export PYTHONPATH=$PYTHONPATH:/opt/tiger/pyutil:/opt/tiger/rh2:/opt/tiger/arnold_toolbox
|
||||
|
||||
# proxy
|
||||
export HF_ENDPOINT=http://huggingface-proxy-sg.byted.org
|
||||
export http_proxy=http://sys-proxy-rd-relay.byted.org:8118
|
||||
export https_proxy=http://sys-proxy-rd-relay.byted.org:8118
|
||||
export no_proxy=byted.org
|
||||
|
||||
alias proxy_on='export http_proxy=http://sys-proxy-rd-relay.byted.org:8118; export https_proxy=http://sys-proxy-rd-relay.byted.org:8118; export no_proxy=byted.org'
|
||||
alias proxy_off='unset http_proxy; unset https_proxy; unset no_proxy'
|
||||
|
||||
Reference in New Issue
Block a user