Your login is not loading the ~/.bashrc...
Slackware does not add (many) things not included in the upstream packages, and that includes the optional config files for bash added by some other distros.
For the order and precedence of bash configs, as always, see man bash (INVOCATION section).
But to get you going here is a quick summary:
Quote:
When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login
option, it first reads and executes commands from the file /etc/profile, if that file exists. After
reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads
and executes commands from the first one that exists and is readable. The --noprofile option may be
used when the shell is started to inhibit this behavior.
|
So ~/.bashrc is not read when it is your login shell. Typically you will want to create a ~./bash_profile with the following lines:
Code:
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
Additionally, if you have system wide bash aliases or vars, put them in /etc/bashrc and add this to your ~/.bashrc:
Code:
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
That will give you a fairly common bash config stack, and load your ~/.bashrc.