-
-
Save GivenCui/6726f386bd97994c459a3543d8e01c86 to your computer and use it in GitHub Desktop.
oh-my-zsh配置文件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 使用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