LoginSignup
2
0

More than 5 years have passed since last update.

AWS にて、root権限だとカラースキームが割り当てられない事への対処

Last updated at Posted at 2014-12-15

http://blog.dacelo.info/linux/entry-759.html
こちらを参照にしたけど出来ず…orz

色が付いているのはviがvimへのaliasになっているからなんですが、rootの場合はviのままになっているのが原因です。
これを変えるためには /etc/profile.d/vim.sh を編集し3行目をコメントアウトします。

if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then
 [ -x /usr/bin/id ] || return
 [ `/usr/bin/id -u` -le 100 ] && return 
 # for bash and zsh, only if no alias is already set
 alias vi >/dev/null 2>&1 || alias vi=vim
fi

2
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
2
0