Skip to content

Instantly share code, notes, and snippets.

@GivenCui

GivenCui/.zshrc Secret

Created July 9, 2019 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GivenCui/6726f386bd97994c459a3543d8e01c86 to your computer and use it in GitHub Desktop.
Save GivenCui/6726f386bd97994c459a3543d8e01c86 to your computer and use it in GitHub Desktop.
oh-my-zsh配置文件
# 使用agnoster主题
ZSH_THEME="agnoster"
# git插件
plugins=(git)
source $ZSH/oh-my-zsh.sh
# autojump
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
# SSH免幂登录alias
alias sshlogin="ssh -i /Users/givencui/other/server/GivenCui1314 root@givencui.com"
# 解决ohmyzsh主题不显示username@hostname
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
# prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment