PDA

View Full Version : My aliases are not loaded in kali 2021



janjan
2021-12-24, 19:43
Hi,
I've tried numerous ways and numerous file but i must be missing something.
I can't figure where to place my .bash_alaises file.
It is simply not read.
Even placing a simple "echo" in either .bashrc or .profile is not echoed.
So which file is always loaded in a terminal?

Thanks

roberts
2021-12-25, 08:37
It's probably because the default is now Zsh. Ever since the 2020-4 release the default shell is Zsh.

https://www.kali.org/blog/kali-linux-2020-4-release/

Type
echo $SHELL to see whether your shell is bash or Zsh

If it's Zsh then you need to add your aliases to the .zshrc file instead of the .bashrc file.

HTH,

Robert