You are not logged in.
Pages: 1
Hi,
I just installed pacman-color and made a file in /etc/profile.d called my-aliases.sh, which contains
alias pacman='pacman-color'
The files's owner is root:root with attributes set 775.
However, if I start a terminal and do something with pacman, the output is not color, but if I run source /etc/profile first, then pacman's output became color. So the alias is not set automatic, but only if I run source /etc/profile first.
Can somebody explain me why?
Offline
This should explain everything...
http://www.linuxfromscratch.org/blfs/vi … ofile.html
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Sorry fukawi2, I didn't found a response why my file isn't executed when a shell starts.
Plus information, I have a similar file to set some extra paths, which is working.
Offline
Looks like the file isn't being sourced.
Offline
Sorry fukawi2, I didn't found a response why my file isn't executed when a shell starts.
Basically, bash doesn't source anything from /etc/ when it starts, only your home directory. Your own .bashrc or .bash_profile needs to source the files from /etc/
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
I read a bit more, but correct me if I'm wrong: path is a login environment variable, while alias is a bash-only variable, and because of this, they are set differently ?
Offline
Pages: 1