0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

byobu のカラープロンプトが有効にならない場合がある

0
Posted at

原因

byobu は初回起動時に byobu-janitor を実行する。この中で ~/.bashrc と /etc/skel/.bashrc を diff し、完全に一致する場合のみ byobu-prompt を自動で有効にする。

# /usr/bin/byobu-janitor より抜粋
if diff /etc/skel/.bashrc "$HOME/.bashrc" >/dev/null 2>&1; then
    printf "[ -r $BYOBU_CONFIG_DIR/prompt ] && . $BYOBU_CONFIG_DIR/prompt   #byobu-prompt#\n" >> "$HOME/.bashrc"
fi

つまり nvm や pyenv 等のインストーラが .bashrc に追記していると、skel と一致しなくなりスキップされる。

対処

手動で有効にする:

byobu-enable-prompt
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?