LoginSignup
0
1

More than 5 years have passed since last update.

Amazon Linux WorkSpaces でシェルのプロンプトを短くする

Last updated at Posted at 2018-08-27

Amazon WorkSpaces で作った Linux 環境のシェルのプロンプトがとても長いです。

toolong.png

元々のユーザー名とコンピュータ名が長い上に、先頭にドメイン名までくっついています。

あまりに長いので、短くします。

~/.bashrc
export PS1="\w\[$(tput sgr0)\] $ "

ディレクトリ名のみ。デスクトップなのでこれで十分です:relieved:

結果は…。

sukkiri.png

PS1 の値は .bashrc PS1 generator で作成しました。

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