├── honukai.png ├── README.md ├── honukai.zsh-theme └── honukai.itermcolors /honukai.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oskarkrawczyk/honukai-iterm-zsh/HEAD/honukai.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Honukai theme and colors for Oh My ZSH and iTerm by [@oskar](https://twitter.com/oskar) 2 | 3 | ![](https://raw.githubusercontent.com/oskarkrawczyk/honukai-iterm/master/honukai.png) 4 | 5 | [See how it looks with blur and transparency](https://v.usetapes.com/SDGzCBkHh4) (video). 6 | 7 | ## Installation 8 | 9 | ### Theme 10 | 11 | The theme is based on the wonderfully made [ys](https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/ys.zsh-theme) theme from the official [oh-my-zsh repo](https://github.com/robbyrussell/oh-my-zsh). 12 | 13 | 1. Drop [`honukai.zsh-theme`](https://raw.githubusercontent.com/oskarkrawczyk/honukai-iterm/master/honukai.zsh-theme) into the `~/.oh-my-zsh/custom/themes/` directory (simply create the `themes` directory if it does not exist) 14 | 2. Change the theme variable name to `ZSH_THEME="honukai"` in `~/.zshrc` 15 | 3. Reload ZSH with `source ~/.zshrc` 16 | 17 | ### Colors 18 | 19 | 1. Open **Preferences** pane on the **Profiles** tab in iTerm 20 | 2. Switch to the **Colors** tab and import the [`honukai.itermcolors`](https://raw.githubusercontent.com/oskarkrawczyk/honukai-iterm/master/honukai.itermcolors) (drop-down in the lower right corner) 21 | 22 | **NOTE**: You'll need at least iTerm2.9-nightly (aka 3.0) 23 | 24 | ### Extra eye-candy 25 | 26 | There's a bunch of settings you might want to change in your profile in order to get the extra eye-candy. 27 | 28 | #### **Text** tab: 29 | 30 | **Cursor** 31 | 32 | - Set to **Vertical** 33 | 34 | **Font** 35 | 36 | - Change to **[12pt Fira Mono Medium](https://github.com/mozilla/Fira/tree/master/ttf)** (I personally love the Fira font-face, and highly suggest using it) 37 | 38 | **Text Rendering** 39 | 40 | - Disable **Draw bold in bold font** 41 | - Disable **Draw bold in bright colors** 42 | - Enable **Draw anti-aliased text with thin strokes** 43 | 44 | #### **Window** tab 45 | 46 | **Window appearance** 47 | 48 | - **Transparency** to **10-15%** 49 | - **Blur** to **40-50%** 50 | -------------------------------------------------------------------------------- /honukai.zsh-theme: -------------------------------------------------------------------------------- 1 | # Based on the great ys theme (http://ysmood.org/wp/2013/03/my-ys-terminal-theme/) 2 | 3 | # Machine name. 4 | function box_name { 5 | [ -f ~/.box-name ] && cat ~/.box-name || echo $HOST 6 | } 7 | 8 | # Directory info. 9 | local current_dir='${PWD/#$HOME/~}' 10 | 11 | # VCS 12 | YS_VCS_PROMPT_PREFIX1=" %{$fg[white]%}on%{$reset_color%} " 13 | YS_VCS_PROMPT_PREFIX2=":%{$fg[cyan]%}" 14 | YS_VCS_PROMPT_SUFFIX="%{$reset_color%}" 15 | YS_VCS_PROMPT_DIRTY=" %{$fg[red]%}✖︎" 16 | YS_VCS_PROMPT_CLEAN=" %{$fg[green]%}●" 17 | 18 | # Git info. 19 | local git_info='$(git_prompt_info)' 20 | ZSH_THEME_GIT_PROMPT_PREFIX="${YS_VCS_PROMPT_PREFIX1}git${YS_VCS_PROMPT_PREFIX2}" 21 | ZSH_THEME_GIT_PROMPT_SUFFIX="$YS_VCS_PROMPT_SUFFIX" 22 | ZSH_THEME_GIT_PROMPT_DIRTY="$YS_VCS_PROMPT_DIRTY" 23 | ZSH_THEME_GIT_PROMPT_CLEAN="$YS_VCS_PROMPT_CLEAN" 24 | 25 | # HG info 26 | local hg_info='$(ys_hg_prompt_info)' 27 | ys_hg_prompt_info() { 28 | # make sure this is a hg dir 29 | if [ -d '.hg' ]; then 30 | echo -n "${YS_VCS_PROMPT_PREFIX1}hg${YS_VCS_PROMPT_PREFIX2}" 31 | echo -n $(hg branch 2>/dev/null) 32 | if [ -n "$(hg status 2>/dev/null)" ]; then 33 | echo -n "$YS_VCS_PROMPT_DIRTY" 34 | else 35 | echo -n "$YS_VCS_PROMPT_CLEAN" 36 | fi 37 | echo -n "$YS_VCS_PROMPT_SUFFIX" 38 | fi 39 | } 40 | 41 | # Prompt format: \n # USER at MACHINE in DIRECTORY on git:BRANCH STATE [TIME] \n $ 42 | PROMPT=" 43 | %{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \ 44 | %{$fg[cyan]%}%n \ 45 | %{$fg[white]%}at \ 46 | %{$fg[green]%}$(box_name) \ 47 | %{$fg[white]%}in \ 48 | %{$terminfo[bold]$fg[yellow]%}${current_dir}%{$reset_color%}\ 49 | ${hg_info}\ 50 | ${git_info} \ 51 | %{$fg[white]%}[%*] 52 | %{$terminfo[bold]$fg[red]%}→ %{$reset_color%}" 53 | 54 | if [[ "$USER" == "root" ]]; then 55 | PROMPT=" 56 | %{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \ 57 | %{$bg[yellow]%}%{$fg[cyan]%}%n%{$reset_color%} \ 58 | %{$fg[white]%}at \ 59 | %{$fg[green]%}$(box_name) \ 60 | %{$fg[white]%}in \ 61 | %{$terminfo[bold]$fg[yellow]%}${current_dir}%{$reset_color%}\ 62 | ${hg_info}\ 63 | ${git_info} \ 64 | %{$fg[white]%}[%*] 65 | %{$terminfo[bold]$fg[red]%}→ %{$reset_color%}" 66 | fi 67 | -------------------------------------------------------------------------------- /honukai.itermcolors: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Ansi 0 Color 6 | 7 | Alpha Component 8 | 1 9 | Blue Component 10 | 0.0 11 | Color Space 12 | Calibrated 13 | Green Component 14 | 0.0 15 | Red Component 16 | 0.0 17 | 18 | Ansi 1 Color 19 | 20 | Alpha Component 21 | 1 22 | Blue Component 23 | 0.18665386736392975 24 | Color Space 25 | Calibrated 26 | Green Component 27 | 0.31231138110160828 28 | Red Component 29 | 0.86485648155212402 30 | 31 | Ansi 10 Color 32 | 33 | Alpha Component 34 | 1 35 | Blue Component 36 | 0.35121414065361023 37 | Color Space 38 | Calibrated 39 | Green Component 40 | 0.72937816381454468 41 | Red Component 42 | 0.49721947312355042 43 | 44 | Ansi 11 Color 45 | 46 | Alpha Component 47 | 1 48 | Blue Component 49 | 0.3333333432674408 50 | Color Space 51 | Calibrated 52 | Green Component 53 | 1 54 | Red Component 55 | 1 56 | 57 | Ansi 12 Color 58 | 59 | Alpha Component 60 | 1 61 | Blue Component 62 | 0.95373213291168213 63 | Color Space 64 | Calibrated 65 | Green Component 66 | 0.5604100227355957 67 | Red Component 68 | 0.36309865117073059 69 | 70 | Ansi 13 Color 71 | 72 | Alpha Component 73 | 1 74 | Blue Component 75 | 0.75484597682952881 76 | Color Space 77 | Calibrated 78 | Green Component 79 | 0.51216816902160645 80 | Red Component 81 | 0.97994524240493774 82 | 83 | Ansi 14 Color 84 | 85 | Alpha Component 86 | 1 87 | Blue Component 88 | 0.90565776824951172 89 | Color Space 90 | Calibrated 91 | Green Component 92 | 0.80690312385559082 93 | Red Component 94 | 0.47083443403244019 95 | 96 | Ansi 15 Color 97 | 98 | Alpha Component 99 | 1 100 | Blue Component 101 | 1 102 | Color Space 103 | Calibrated 104 | Green Component 105 | 1 106 | Red Component 107 | 1 108 | 109 | Ansi 2 Color 110 | 111 | Alpha Component 112 | 1 113 | Blue Component 114 | 0.22786164283752441 115 | Color Space 116 | Calibrated 117 | Green Component 118 | 0.74287182092666626 119 | Red Component 120 | 0.42205339670181274 121 | 122 | Ansi 3 Color 123 | 124 | Alpha Component 125 | 1 126 | Blue Component 127 | 0.17459605634212494 128 | Color Space 129 | Calibrated 130 | Green Component 131 | 0.84299170970916748 132 | Red Component 133 | 0.90120565891265869 134 | 135 | Ansi 4 Color 136 | 137 | Alpha Component 138 | 1 139 | Blue Component 140 | 0.98870241641998291 141 | Color Space 142 | Calibrated 143 | Green Component 144 | 0.43747854232788086 145 | Red Component 146 | 0.14751617610454559 147 | 148 | Ansi 5 Color 149 | 150 | Alpha Component 151 | 1 152 | Blue Component 153 | 0.7253117561340332 154 | Color Space 155 | Calibrated 156 | Green Component 157 | 0.34603607654571533 158 | Red Component 159 | 0.95038461685180664 160 | 161 | Ansi 6 Color 162 | 163 | Alpha Component 164 | 1 165 | Blue Component 166 | 0.85335952043533325 167 | Color Space 168 | Calibrated 169 | Green Component 170 | 0.69620096683502197 171 | Red Component 172 | 0.22087787091732025 173 | 174 | Ansi 7 Color 175 | 176 | Alpha Component 177 | 1 178 | Blue Component 179 | 0.73333334922790527 180 | Color Space 181 | Calibrated 182 | Green Component 183 | 0.73333334922790527 184 | Red Component 185 | 0.73333334922790527 186 | 187 | Ansi 8 Color 188 | 189 | Alpha Component 190 | 1 191 | Blue Component 192 | 0.33333333333333331 193 | Color Space 194 | Calibrated 195 | Green Component 196 | 0.33333333333333331 197 | Red Component 198 | 0.33333333333333331 199 | 200 | Ansi 9 Color 201 | 202 | Alpha Component 203 | 1 204 | Blue Component 205 | 0.3913804292678833 206 | Color Space 207 | Calibrated 208 | Green Component 209 | 0.4961114227771759 210 | Red Component 211 | 0.88426637649536133 212 | 213 | Background Color 214 | 215 | Alpha Component 216 | 1 217 | Blue Component 218 | 0.14622637629508972 219 | Color Space 220 | Calibrated 221 | Green Component 222 | 0.087520182132720947 223 | Red Component 224 | 0.066731743514537811 225 | 226 | Badge Color 227 | 228 | Alpha Component 229 | 0.457366943359375 230 | Blue Component 231 | 0.37474671006202698 232 | Color Space 233 | Calibrated 234 | Green Component 235 | 0.98996305465698242 236 | Red Component 237 | 1 238 | 239 | Bold Color 240 | 241 | Alpha Component 242 | 1 243 | Blue Component 244 | 1 245 | Color Space 246 | Calibrated 247 | Green Component 248 | 1 249 | Red Component 250 | 1 251 | 252 | Cursor Color 253 | 254 | Alpha Component 255 | 1 256 | Blue Component 257 | 0.99999129772186279 258 | Color Space 259 | Calibrated 260 | Green Component 261 | 0.99997437000274658 262 | Red Component 263 | 1 264 | 265 | Cursor Guide Color 266 | 267 | Alpha Component 268 | 0.4178466796875 269 | Blue Component 270 | 0.088845238089561462 271 | Color Space 272 | Calibrated 273 | Green Component 274 | 0.060530975461006165 275 | Red Component 276 | 0.01609235443174839 277 | 278 | Cursor Text Color 279 | 280 | Alpha Component 281 | 1 282 | Blue Component 283 | 0.43402600288391113 284 | Color Space 285 | Calibrated 286 | Green Component 287 | 1 288 | Red Component 289 | 0.98654043674468994 290 | 291 | Foreground Color 292 | 293 | Alpha Component 294 | 1 295 | Blue Component 296 | 0.78452938795089722 297 | Color Space 298 | Calibrated 299 | Green Component 300 | 0.73697686195373535 301 | Red Component 302 | 0.73122179508209229 303 | 304 | Link Color 305 | 306 | Alpha Component 307 | 1 308 | Blue Component 309 | 0.67799997329711914 310 | Color Space 311 | Calibrated 312 | Green Component 313 | 0.27000001072883606 314 | Red Component 315 | 0.023000000044703484 316 | 317 | Selected Text Color 318 | 319 | Alpha Component 320 | 1 321 | Blue Component 322 | 0.99999129772186279 323 | Color Space 324 | Calibrated 325 | Green Component 326 | 0.99997437000274658 327 | Red Component 328 | 1 329 | 330 | Selection Color 331 | 332 | Alpha Component 333 | 1 334 | Blue Component 335 | 0.34405481815338135 336 | Color Space 337 | Calibrated 338 | Green Component 339 | 0.21591489017009735 340 | Red Component 341 | 0.1812402755022049 342 | 343 | 344 | 345 | --------------------------------------------------------------------------------