Ubuntu系の記事にスクリーンショットを貼り付けたい時、実際に使っているホスト名を入れたくなく、画像処理で消すのも面倒なので一時的にプロンプトを変更してみる。
方法
以下のテキストを実行する。
export PS1="\u@SakuraVPS:\w$"
参考
How to Change Bash Prompt
In this tutorial, we show various ways to customize the Bash prompt in the command line interface of a Linux system.
コメント