Files
easyzsh/zshrc/merlin_devbox.zsh

59 lines
2.5 KiB
Bash

# Merlin devbox specific aliases
alias l=ls
alias ll='ls -l --color=auto'
alias infosys='cd ~/repos/infosys; pushonline -minfosys'
export PATH=/opt/tiger/tce/tce_tools/bin:/home/tiger/.local/bin:/opt/common_tools:/usr/local/go/bin:$PATH
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
# huggingface proxy
export HF_NETWORK_PROXY=http://huggingface-proxy-sg.byted.org
export HF_MIRROR_INTERNAL=http://huggingface-mirror.bytedance.net
export HF_MIRROR_EXTERNAL=https://hf-mirror.com
export HF_ENDPOINT=$HF_NETWORK_PROXY
alias hf_network_proxy='export HF_ENDPOINT=$HF_NETWORK_PROXY'
alias hf_mirror_internal='export HF_ENDPOINT=$HF_MIRROR_INTERNAL'
alias hf_mirror_external='export HF_ENDPOINT=$HF_MIRROR_EXTERNAL'
# http 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,bytedance.net,10.*.*.*,127.*.*.*
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,bytedance.net,10.*.*.*,127.*.*.*
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,bytedance.net,10.*.*.*,127.*.*.*; 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,bytedance.net,10.*.*.*,127.*.*.*'
alias proxy_off='unset http_proxy; unset https_proxy; unset no_proxy; unset HTTP_PROXY; unset HTTPS_PROXY; unset NO_PROXY'