LoginSignup
4
4

More than 5 years have passed since last update.

bash の prompt に色をつける

Last updated at Posted at 2015-09-03

にやり方がある。私は

$PS1="\[\033[36m\][\u@\h:\w]$\[\033[37m\] "

としている。\[\033[36m\] で色を cyan にし、 \[\033[37m\] で色を white に戻している。この部分、可読性が低いのでどうにかしたい。

-> http://stackoverflow.com/questions/689765/how-can-i-change-the-color-of-my-prompt-in-zsh-different-from-normal-text zsh だとどうにかできるようだ。

4
4
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
4
4