mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge 1f71de09e1 into 5667161d49
This commit is contained in:
commit
3951b60832
1 changed files with 17 additions and 0 deletions
17
themes/emre.zsh-theme
Normal file
17
themes/emre.zsh-theme
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
function get_ip() {
|
||||
ifconfig en0 |
|
||||
grep -oP "(?<=inet ).*?(?= )"
|
||||
}
|
||||
|
||||
PROMT_NAME_COLOR="%{$fg_bold[green]%}"
|
||||
PROMT_DIRECTORY_COLOR="%{$fg_bold[blue]%}"
|
||||
PROMT_COLOR="%{$fg_bold[yellow]%}"
|
||||
|
||||
PROMPT=$'\
|
||||
${PROMT_NAME_COLOR}%n@$(get_ip) %{$reset_color%}${PROMT_DIRECTORY_COLOR}%~%{$reset_color%}\
|
||||
${PROMT_COLOR}%D{%R} $(git_prompt_info)>%{$reset_color%} '
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX=""
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}!"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=" "
|
||||
Loading…
Add table
Add a link
Reference in a new issue