I started getting this weird line every time I open a new terminal tab.
3='cd -3' ruby-2.1.5 ➜ /Volumes/dev_directory
It started about a month ago and I've looked in the
~/.profile ~/.bashrc ~/.zshrc
where else can I look for it?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
That output looks a lot like something called
alias with fewer parameters than intended.
echo | $SHELL -ix | grep alias
to find whatever is printing the annoying line, then
grep for that in your home directory,
/usr/share, and wherever else you might have put something that influences your shell.
(As for that command:
-x prints a trace of all commands that are executed, and
-i ensures you get a login shell (i.e. your shell's rc and profile files are loaded) even though input is coming from a pipe.)