# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
ZSH_DISABLE_COMPFIX=true
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="bullet-train"
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting # 添加插件
)
. /usr/share/autojump/autojump.sh
source $ZSH/oh-my-zsh.sh
source $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $ZSH_CUSTOM/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
eval $(thefuck --alias)
# 快捷键
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
alias sa='source /home/venv_sp/bin/activate'
alias nf='neofetch'
alias up='unset https_proxy && unset http_proxy'
alias py='python'
alias h='fc -il 1'
alias su='sudo su'
alias e='dde-file-manager'
alias msq='mycli -uroot -proot'
alias gg='git log'
alias mgd='mongod &'
alias kg8='fuser -k -n tcp 8000'
alias ydl='youtube-dl'
alias yg='you-get'
alias src='source ~/.zshrc'
alias vz='vim ~/.zshrc'
alias sai='sudo apt install'
alias sdi='sudo dpkg -i'
export TIME_STYLE='+%Y-%m-%d %H:%M:%S'
# 终端代理
proxy () {
export http_proxy="http://127.0.0.1:12345"
export https_proxy="http://127.0.0.1:12345"
echo "HTTP 代理已启用"
}
# 关闭终端代理
up () {
unset http_proxy
unset https_proxy
echo "HTTP 代理已关闭"
}
# pyenv配置
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# node.js配置
export NODE_HOME=/opt/soft/src/node-v14.16.0-linux-x64/bin
export PATH=$NODE_HOME:$PATH
.zshrc的配置
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...