Red Hat Bugzilla – Bug 63248
vim alias in /etc/profile.d/vim.sh belongs in bashrc
Last modified: 2007-04-18 12:41:53 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020228
Description of problem:
When vim-enhanced is installed, /etc/profile.d/vim.sh does a neat trick aliasing
vi to vim. This allows users to get the right editor. I'm fully in support of
However, as this is in profile.d, it does not happen in non-login shells (eg,
xterms or screen(1) sessions). profile is an environment thing. bashrc is an
interactive thing. Aliases really belong in bashrc.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2.Log in and type 'alias' Note that 'vi' is aliased to 'vim' correctly.
3.Run screen(1). Type 'alias'. Note that the alias list does not contain the
alias of 'vi' to 'vim' as the shell inside screen(1) is not a login shell, and
aliases do not carry to child shells.
Actual Results: vi was not aliased to vim
Expected Results: vi should be aliased to vim