LoginSignup
2
1

More than 5 years have passed since last update.

かわいいプロンプトを作ってみた

Posted at

はじめに

テンション上げたいと思ってプロンプトを変えてみました。

完成

image.png

変更手順

「bash_profile」という設定ファイルを任意のエディタで開きます。(今回は「nano」を使用)

nano ~/.bash_profile

bash_profileを開いたら2行目に追記します。

export PS1=">>"

このように追記するとプロンプトが >> に変わります。
こちらを変えてかわいいプロンプトにしました。

image.png

まず\u\wでユーザー名とホスト名を表示します。
2行目と3行目でキャラクターを作りました。
7mでWhite,3mでRedを指定しています。

最後に

プロンプトを変えるとテンション上がりました。

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