The way which I would set up global aliases (using your sequence as a guide) would be:
- Create a global alias file under /etc ( I would call it aliasrc )
- Within the newly created file, I would type all the aliases I want to create.
Example:
Code:
#alias format
#alias <alias_name>='<command>'
alias myls='ls -al'
- Load the newly created alias file using the global profile under /etc by adding a conditional statement.
Example:
Code:
#if statement to load global aliases
#load the global alias if the file exists, and it is readable
if [ -f /etc/aliasrc -a -r /etc/aliasrc ], then
. /etc/aliasrc
fi
And that should do it.
However, if you are using a shell other than bash, sh, ksh, or zsh, then the process of loading global settings will be different. In the case of csh and tcsh, you will have to implement the same concept to their global settings file .login, instead of the profile.
WRT, to opening a terminal with CTR+t, check the properties of the call to the terminal in both your desktop menu, and your task bar menu, and make sure they both are being called as a login shell, and not a generic shell.
GL
P.S. if you want to load the profile when you su, you have to call it as such:
"
su - " in order to load the global profile.
//edit: added wrt and p.s.