I want to remove ~/bin
from my PATH. I set it up months ago when Linux (Ubuntu) was very new to me, but I don't know how I added it...
Nothing shows up when I search all the files listed below.
Where else could it be being set? It is being pre-pended after $HOME/.profile
prefixes PATH with $HOME/bin
If it makes any difference, I get the same PATH from both the command-prompt and a running script.
#!/bin/bash
{
echo "first dir of PATH is: '${PATH%%:*}'"
shopt -s nullglob
cat \
/etc/profile \
/etc/bash.bashrc \
/etc/profile.d/*.sh \
$HOME/.bashrc \
$HOME/.bash_aliases \
/etc/bash_completion \
$HOME/.bash_completion* \
$HOME/.profile \
$HOME/.profile_zap \
$HOME/.bash_profile* \
$HOME/.bash_login* \
| sed -rne '/~\/bin/p'
}
Output is:
first dir of PATH is: '~/bin'
PATH
instead. If still no luck, check all files for anything that is being sourced. – jw013 Aug 05 '11 at 16:06~/.gnomerc
... – Peter.O Aug 05 '11 at 17:27