# THIS IS FOR THE BASH SHELL

# Add this to your .profile, or to /etc/profile for system wide 
# configuration. Note that the ncd executable is in the 
# directory /usr/bin/ncd, modify it if necessary:

function ncd()  
{ 
	/usr/bin/ncd $*; 
	if [ $? = 0 ]; then 
		cd "$(cat $HOME/.ncd_sdir)"; 
	fi
}


# In NCD_OPTS environment variable you can define your preferred default
# options. -RHaVDxL are the default ones. NCD_OPTS needs not be defined at
# all if you use these ones.

# export NCD_OPTS=-RHaVDxL

