0
0

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 3 years have passed since last update.

備忘録 : 煩わしいプロンプトをさっと見やすく改良する。 // Linux プロンプト 変更

Last updated at Posted at 2020-05-14

いろいろとめんどくせえし、さっと手短に書きます。
備忘録だし、ほぼ俺のためだけのやつだし

// .bashrcを開く
$ vim .bashrc

// 一番したに移動
# prompt change
export PS="\[e[31m\]FuckMyLife\[\e[0m]: \w \$ "

$ . .bashrc

以上


##補足
[e[31m] 〜 はこれ以降赤色にするよってこと
]\e[0m]    で色を元に戻す

\w はカレントディレクトリ
$ は、まあ見たまんま。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?