mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added the start of my own theme, based on blinks.
This commit is contained in:
parent
1120f97305
commit
d08624f375
1 changed files with 22 additions and 0 deletions
22
themes/adamransom.zsh-theme
Normal file
22
themes/adamransom.zsh-theme
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
# https://github.com/adamransom zsh theme
|
||||||
|
|
||||||
|
function _prompt_char() {
|
||||||
|
echo "%{$fg[blue]%}➜%{$reset_color%}"
|
||||||
|
}
|
||||||
|
|
||||||
|
function _ssh_prompt() {
|
||||||
|
[[ -n "${SSH_CONNECTION}" ]] && "%n%{$fg_bold[blue]%}@%{$fg_bold[cyan]%}%m%{$fg_bold[green]%}"
|
||||||
|
}
|
||||||
|
|
||||||
|
function _collapse_pwd {
|
||||||
|
echo $(pwd | sed -e "s,^$HOME,~,")
|
||||||
|
}
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg_bold[blue]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}%{$bg[black]%}%{$fg_bold[green]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$reset_color%}%{$bg[black]%}%{$fg[red]%}✘%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$reset_color%}%{$bg[black]%}%{$fg[green]%}✔%{$reset_color%}"
|
||||||
|
|
||||||
|
PROMPT='%{$reset_color%}
|
||||||
|
%{%K{black}%B%F{green}%}$(_ssh_prompt)%{%b%F{yellow}%K{black}%}$(_collapse_pwd)%{%B%F{green}%}$(git_prompt_info)%E%{$reset_color%}
|
||||||
|
%{%K{black}%}$(_prompt_char)%{%K{black}%} %#%{$reset_color%} '
|
||||||
Loading…
Add table
Add a link
Reference in a new issue