LoginSignup
0
1

More than 5 years have passed since last update.

bashのプロンプト

Posted at

PS1を書き換える事で変更できる。
Macでフルスクリーンにして作業してることが多い+コマンドを実行した時刻が知りたい時がたまにあるので時刻も表示するようにしてる。

export PS1='\[\e[1;32m\][\w] \t${text}\n$\[\e[m\] '

出力例

[/tmp/iwata-n] 13:17:10
$ pwd
/tmp/iwata-n
0
1
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
0
1