in the past i have just edited the .bash_profile for the user and added my alias's i want for each user.
under Fedora 18 i have done so for both the user of the laptop and for root (for me) with the following alias:
alias d='ls -laF'
real simple. nothing fancy, nothing crazy.
When i start the terminal withing Gnome the user has no access to the alias, but if i su - then root does. what gives?
More importantly what file(s) do i need to edit to make this simple alias for all users including new users created down the line?
Thanks.
Code:
$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
alias d='ls -laF'
export PATH
Code:
# cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
alias d='ls -laF'
export PATH