I used to do this with bash...
/bin/bash --rcfile /home/sindhu/bin/misc_scripts/shellrc/.bashrc_1
how can I accomplish the same with zsh?
Thank you.
Open Terminal > and type: open ~/. zshrc.
zshrc file located in your home directory. It's a hidden file, so you might not see it in your home directory, but you can view it by running open ~/. zshrc from the terminal.
You can approximate that feature by using the ZDOTDIR
variable.
In a directory perhaps like this:
mkdir /home/sindhu/bin/misc_scripts/shellrc/.zshrc_1
create a file called .zshrc
containing your alternative startup script. Then you can start zsh like this:
ZDOTDIR=/home/sindhu/bin/misc_scripts/shellrc/.zshrc_1 zsh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With