├── README.md ├── installation.sh ├── neon.zsh-theme └── screen.png /README.md: -------------------------------------------------------------------------------- 1 | # Neon - ZSH terminal theme 2 | 3 | Pretty and minimal ZSH theme. 4 | 5 | ![screenshot](./screen.png "screenshot") 6 | 7 | ## Installation 8 | 9 | Using `curl`: 10 | 11 | ```sh 12 | sh -c "$(curl -fsSL https://raw.githubusercontent.com/sahariko/neon/master/installation.sh)" 13 | ``` 14 | 15 | Using `wget`: 16 | 17 | ```sh 18 | sh -c "$(wget https://raw.githubusercontent.com/sahariko/neon/master/installation.sh -O -)" 19 | ``` 20 | -------------------------------------------------------------------------------- /installation.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | mkdir -p ~/.oh-my-zsh/custom/themes/ 4 | curl https://raw.githubusercontent.com/sahariko/neon/master/neon.zsh-theme -o ~/.oh-my-zsh/custom/themes/neon.zsh-theme 5 | sed -i.bak 's/^[[:space:]]*ZSH_THEME=.*/ZSH_THEME="neon"/' ~/.zshrc 6 | -------------------------------------------------------------------------------- /neon.zsh-theme: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env zsh 2 | 3 | setopt promptsubst 4 | 5 | autoload -U add-zsh-hook 6 | 7 | PROMPT_SUCCESS_COLOR="$FG[117]$FX[bold]" # The path color 8 | PROMPT_FAILURE_COLOR=$FG[124] 9 | PROMPT_VCS_INFO_COLOR=$FG[242] 10 | PROMPT_PROMPT=$FG[205] # The end symbol's color 11 | GIT_DIRTY_COLOR=$FG[196] 12 | GIT_CLEAN_COLOR=$FG[084] 13 | GIT_PROMPT_INFO=$FG[243] 14 | 15 | PROMPT_END_SYMBOL=❯ 16 | 17 | PROMPT=$'%{$PROMPT_SUCCESS_COLOR%}%~%{$reset_color%}%{$GIT_PROMPT_INFO%}$(git_prompt_info)$(virtualenv_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}$PROMPT_END_SYMBOL%{$reset_color%} ' 18 | 19 | ZSH_THEME_GIT_PROMPT_PREFIX=" " 20 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%}" 21 | ZSH_THEME_GIT_PROMPT_DIRTY=" " 22 | ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔" 23 | 24 | ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}+%{$reset_color%}" 25 | ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}" 26 | ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}-%{$reset_color%}" 27 | ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}" 28 | ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}" 29 | ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[226]%}*%{$reset_color%}" 30 | 31 | ZSH_THEME_VIRTUALENV_PREFIX=" [" 32 | ZSH_THEME_VIRTUALENV_SUFFIX="]" 33 | -------------------------------------------------------------------------------- /screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sahariko/neon/589313304d59f2c0c7c0d58b8ae22ee968b19925/screen.png --------------------------------------------------------------------------------