Q: I have wcd.exe installed and defined the function
in ~/.bashrc but the shell returns: "command not found".
A: The problem is that ~/.bashrc is not executed because
the bash is started as an interactive login shell.
The bash only executes the commands in ~/.bashrc if it
is started as an interactive shell that is not a login
If the bash is started as an interactive login shell it
first reads and executes commands from the file
/etc/profile, if that file exists. After reading that
file, it looks for ~/.bash_profile, ~/.bash_login, and
~/.profile, in that order, and reads and executes commands
from the first one that exists and is readable.
The solution is to define the wcd function in one of these
Q: How do I automatically start the explorer after wcd?
A: If you use the dos32bit version on windows 95/98/ME this batch script will work:
wcd.exe %1 %2 %3 %4 %5 %6
If you use the win32 console version add an extra line to your wcd.bat
script (on windows NT/2000/XP).
echo explorer.exe . >> c:\wcdgo.bat
Q: The system administrator has set environment variable HOME,
but I want the behaviour of wcd as if HOME and WCDHOME were
not set (as I was used to on DOS/Windows 9x).
A: In the wcd.bat file you have to copy HOME into another
variable, unset HOME, run wcd, and copy HOME back to its original
value. An example follows:
You may need to rescan your drives after this.