Some of the scripts I run are located on a CIFS filesystem hosted on another machine. I mount that filesystem over the network and add the remote location of the scripts to my $PATH. This works great in normal conditions. However, if the remote machine goes offline or hangs up for some reason, it can make using the command line downright horrible as every tab completion or command entry blocks looking for programs on the remote host. Opening a new terminal window also hangs as the shell is starting.What's a good way to ameliorate this problem while maintaining the utility of the $PATH lookup mechanism?
$PATH referring to network fs: generally useful, occasionally horrible
bash;path;cifs;nas