Skip to content

Instantly share code, notes, and snippets.

@onokatio
Created April 5, 2018 08:32
Show Gist options
  • Save onokatio/5d78a7a37769b1e47a07164ab1e6b260 to your computer and use it in GitHub Desktop.
Save onokatio/5d78a7a37769b1e47a07164ab1e6b260 to your computer and use it in GitHub Desktop.
お前らのターミナルは可愛くない ref: https://qiita.com/onokatio/items/9b18d900629b84e5845d
$ PROMPT="人の金で焼き肉が食べたい!! "
$ PROMPT="%K{black}%F{red}人の%F{yellow}金で%F{orange}焼き%F{blue}肉が%F{white}食べ%F{green}たい!! %~ "
$ PROMPT="%K{black}%F{red}人の%F{yellow}金で%F{orange}焼き%F{blue}肉が %~ "
$ RPROMPT="%F{black}%K{white}食%K{yellow}べ%K{green}た%K{red}い%K{blue}!!"
if [[ -n "${REMOTEHOST}${SSH_CONNECTION}" ]];then
ISSSH="%K{yellow}%F{black}SSH %k%f"
fi
PROMPT="%K{black}${ISSSH}%F{red}人の%F{yellow}金で%F{orange}焼き%F{blue}肉が %~ "
RPROMPT="%F{black}%K{white}食%K{yellow}べ%K{green}た%K{red}い%K{blue}!!"
if [ ${UID} -eq 0 ]; then
ISROOT="%K{red}%F{black}ROOT %k%f"
fi
PROMPT="%K{black}${ISROOT}%F{red}人の%F{yellow}金で%F{orange}焼き%F{blue}肉が %~ "
RPROMPT="%F{black}%K{white}食%K{yellow}べ%K{green}た%K{red}い%K{blue}!!"
preexec() {
_pre="$1"
}
precmd(){
_r=$?
case "${_pre}" in
cd*|git*|vi*|:)
vcs_info
;;
esac
_pre=""
return ${_r}
}
setopt prompt_subst
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:git:*' check-for-changes true
zstyle ':vcs_info:git:*' stagedstr "%K{yellow}"
zstyle ':vcs_info:git:*' unstagedstr "%K{red}"
zstyle ':vcs_info:*' formats "%K{green}%F{white}%c%u[%b]%f"
zstyle ':vcs_info:*' actionformats '[%b|%a]'
vcs_info
PROMPT="%K{black}${ISROOT}%F{red}人の%F{yellow}金で%F{orange}焼き%F{blue}肉が %~ "
RPROMPT="%f%b%k${vcs_info_msg_0_}%F{black}%K{white}食%K{yellow}べ%K{green}た%K{red}い%K{blue}!!"
# 略
zstyle ':vcs_info:git:*' stagedstr "%K{white}%F{yellow}" # %c
zstyle ':vcs_info:git:*' unstagedstr "%K{white}%F{red}" # %u
zstyle ':vcs_info:*' formats "%K{black}%F{white}%F{green}%K{white}%c%u[%b]%f"
# 略
UUU="%K{white}%F{black}(」・ω・)」うー"
NYA="\(・ω・\)にゃー!"
PROMPT="${UUU} %K{blue}%F{white} %F{black}%~ %k%F{blue}%f "
RPROMPT='%f%b%k${vcs_info_msg_0_}%F{black}%K{white}%F{white}%K{black} ${NYA} %f'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment