Resolved Issue #194

Issue #194
Ignoring the ".DS_Store" files on OS X
Adding a newline before the source string in the ".bash_profile"

Resolved Issue #197
Fixes issue 199

Fixes issue 199 where the bash completion was not working in ZSH
because the builtin bash command `complete` was not found. The fix
executes the `bashcompinit` command which creates the `complete`
function for the Z shell.
Recommend version 0.8 in README.markdown.

Automatically install the latest available 0.8.x version.
Clarify difference between `nvm ls` and `nvm ls-remote`.
Merge pull request #202 from hugojosefson/recommend-version-0.8

Recommend version 0.8 in README.markdown.
Merge pull request #200 from croach/issue-199

Fixes Issue 199
Update README.markdown

I do think recent changes changed nvm to .nvm.
Add FreeBSD support
Merge pull request #222 from jnlin/master

Added FreeBSD support
Merge pull request #195 from gpad/patch-1

Resolved Issue #194
Silence stderr warning on `nvm uninstall' with no configured alias
Reduce usage of `cd' to avoid issues with shell aliases

Since we run in interactive context the builtin `cd' may have been aliased to
print some additional info when invoked, thus it's safer for us to avoid
parsing the output from subshells which calls it.

For instance in .bash_profile I have the following function to redefine
`cd' such that it will list the destination directory contents:
cd () { builtin cd "$@" && ls -F --color=auto }
Merge pull request #203 from em-/master

Don't trust the environment and explicitly ask for the builtin `cd'
Merge pull request #198 from ArtemGordinsky/master

Adding a newline before the source string in the ".bash_profile"
Drop invalid -a flag for basename.

basename doesn't accept options in bash. This causes the VERSIONS variable get the 'N/A' value for $ nvm ls command.

From basename man page:
NAME
       basename - strip directory and suffix from filenames

SYNOPSIS
       basename NAME [SUFFIX]
       basename OPTION

DESCRIPTION
       Print NAME with any leading directory components removed.  If specified, also remove a trailing SUFFIX.

       --help display this help and exit

       --version
              output version information and exit



coreutils version used in Linux Mint 14 Nadia.

GNU coreutils 8.12.197-032bb                                               September 2011                                                               BASENAME(1)

No idea if this flag exists on FreeBSD or other unixes (if they use gnu coreutils shouldn't be any problem)
Merge pull request #231 from miguelcoba/patch-1

Drop invalid -a flag for basename.
Remove `-e` option in `install.sh` script

The `sh` actually doesn't support `-e` option.
Fixes issue 232

Fixes issue 232 that occurs in at least bash v4.2.25 where "nvm ls" returns "N/A" no matter how many versions of node have been installed.  The fix uses a combination of the find, tr and basename commands instead of basename only.  Tested in bash v3.2.48 and v4.2.25 and zsh v4.3.11.