19
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

macのターミナル(iTerm2)のプロンプトにランダムな色のリンゴマークを出してみた(zsh)

Last updated at Posted at 2013-08-06

zshrcに一行追加でこんな感じになります!

BQu9UU3Tusv.gif

殺風景なターミナルに疲れた方どうぞ〜^^

zshrc
#色ランダムリンゴマーク
PROMPT=$'%{\e[$[32+$RANDOM % 5]m%}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'

以下参考URL
https://gist.github.com/STAR-ZERO/2901454
http://inforati.jp/apple/mac-tips-techniques/system-hints/how-to-enter-apple-logo-mark-with-mac-keyboard-shortcut.html

19
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?