.bash_profileはログイン時に一回起動、.bashrcはシェル起動時に毎回起動
ubuntu-trusty という長ったらしいの変更したい
vagrant@vagrant-ubuntu-trusty-64:~/*
\u:username
\h:hostname
\W:current directory
vim ~/.bashrc
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)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
PS1がプロンプトの表示
“\h”を”trusty”に書き換えてsource .bashrcで反映する
vagrant@vagrant-ubuntu-trusty-64:~/other/hello-2.7$ source ~/.bashrc
vagrant@trusty:~/other/hello-2.7$
おー、スッキリした♪♪