Revision: 6312
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 15, 2008 15:22 by kergoth
Initial Code
if [ "$(stat -f -c "%T" $path)" = "nfs" ]; then # $path is in an nfs mount fi
Initial URL
Initial Description
This is useful if you have some optional functionality being done which is quite slow on nfs. For example, I have a script that adds scm (svn/git/etc) info to my prompt, but I wouldn't want that when I'm in a repository on an nfs mount.
Initial Title
Determine if a path is in an nfs mount
Initial Tags
path
Initial Language
Bash