【初心者スレ】Ubuntu Linux 86at LINUX
【初心者スレ】Ubuntu Linux 86 - 暇つぶし2ch504:login:Penguin
12/12/11 18:36:54.68 Z5QFU5Nm
Ubuntu Server 12.0.4.1 amd64 を使ってます。
コマンドプロンプトを変えたいんですが、
~/.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

を下記のように書き換えても反映されません。

if [ "$color_prompt" = yes ]; then
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1='\[\033[47;1;30m\][\u@\h \w --- \t] \e[0m\]\[\033[47;1;30m\]\e[0m\]\n$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi

何が間違っている(もしくは何を見落としている)んでしょうか?


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch