In the past, I've used bash consistently, because it's everywhere.
But recently I started to try zsh. I don't want to give up updating my .bashrc fil which is rsync'ed to all my servers .
So, in my .zshrc, I sourced my old .bashrc using the command source ~/.bashrc.
Everything goes well, except every time I open a new terminal window with zsh.
There is a bunch of information prompts to the screen. It looks like this:
pms () {
if [ -n "$1" ]
then
user="$1"
else
user="zen"
fi
python /Users/zen1/zen/pythonstudy/creation/project_manager/project_manager.py $user show "$2"
}
pmcki () {
if [ -n "$1" ]
then
user="$1"
else
user="zen"
fi
python /Users/zen1/zen/pythonstudy/creation/project_manager/project_manager.py $user check_in "$2"
}
zen1@bogon:~|⇒
These are function definitions in my .bashrc. They're triggered by source ~/.bashrc in my .zshrc file.
What I want is for .zshrc to source my .bashrc quietly, with all stderr and stdout output hidden.
Is it possible to do that? How?
source ~/.bashrc > /dev/null 2>&1?