LoginSignup
2
0

More than 5 years have passed since last update.

macのターミナルが絶望的に見にくいので表示をlinux風にした。(自分用メモ)

Last updated at Posted at 2018-07-05

方法

~/.bash_profileに

export PS1="\[\e[0;32m\]\u@\h:\W$\[\e[0;0m\]"

を追加。

結果

緑字で

ユーザー名@pc名:カレントdir$

と表示

おまけ-grepの該当箇所を色分け

~/.bash_profile
export GREP_OPTIONS='--color=auto'

参考

【mac】ターミナルのプロンプトの変更
https://qiita.com/griffin3104/items/0d610ad1a57fa6ad6a09
grepコマンドに色をつける
http://te2u.hatenablog.jp/entry/2013/10/18/222733

2
0
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
2
0