买了一件ohmyzsh T恤
Contents
ohmyzsh 16周年 #
八月是ohmyzsh 16周年纪念,买了一件官方T恤,Bella + Canvas品牌,尼加拉瓜生产。半个月寄到上海,非常适合上海的秋天穿。

我的.zshrc配置
#
下面是我正在用的ohmyzsh配置:
shell
# 常用主题
ZSH_THEME="fox"
#ZSH_THEME="af-magic"
# 不自动激活venv
PYTHON_AUTO_VRUN=false
PYTHON_VENV_NAME=".venv"
# 常用插件
plugins=(
git # Git别名和功能
z # 智能目录跳转
extract # 万能解压
fzf # 模糊搜索
python # 常用python功能
copyfile # 复制文件内容到剪贴板
colored-man-pages # 彩色man页面
command-not-found # 命令建议
sudo # 双击ESC添加sudo
1password # 通过opswd访问1Password
dotenv # 自动加载.env文件
tmux # 常用tmux快捷键
forgit # 基于fzf的git交互
fzf-tab # 按下Tab键时,接管和展示zsh原本的补全列表
zsh-autosuggestions # 命令自动建议
zsh-syntax-highlighting # 语法高亮(需放最后)
)
source $ZSH/oh-my-zsh.sh
# 为了fzf-tab支持中文
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
# 默认编辑器
if [[ $(uname -s) == "Darwin" && -z $SSH_CONNECTION ]]; then
export EDITOR='bbedit -w'
else
export EDITOR='emacs -nw'
fi如果记不住快捷指令,可以临时查看,比如:
shell
└> alias|grep forgit
ga=forgit::add
gat=forgit::attributes
gbd=forgit::branch::delete
gbl=forgit::blame
gcb=forgit::checkout::branch
gcf=forgit::checkout::file
gclean=forgit::clean
gco=forgit::checkout::commit
gcp=forgit::cherry::pick::from::branch
gct=forgit::checkout::tag
gd=forgit::diff
gfu=forgit::fixup
gi=forgit::ignore
glo=forgit::log
grb=forgit::rebase
grc=forgit::revert::commit
grh=forgit::reset::head
grl=forgit::reflog
grw=forgit::reword
gso=forgit::show
gsp=forgit::stash::push
gsq=forgit::squash
gss=forgit::stash::show安装常用的插件:
shell
# zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# fzf-tab
git clone https://github.com/Aloxaf/fzf-tab ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tab
# forgit
git clone https://github.com/wfxr/forgit.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/forgitHappy Oh My Zsh!