Ubuntu & Mac - Terminalのプロンプトを設定
Ubuntu
~/.bashrcのPS1を書き換える。
if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else PS1='${debian_chroot:+($debian_chroot)}\[\e[1;33m\]\w\$\[\e[00m\] ' fi
こんな感じ。
Mac
~/.bash_profile に以下を書くと
PS1='\e[0;33m\w:\u $ \e[0m'
こんな感じ。 背景紫に、文字黄色と白いいなぁ。
P.S.
スクショのコマンド知らなかったし、ここみたら便利そうなコマンドいっぱいあったから使ってこ。
Ubuntu 16.04 LTSで使えるキーボードショートカット一覧 - 旧ID:itiriのブログ