Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Export $NVM_DIR if it doesn't exist and use it when looking for nvm * Use $NVM_DIR when looking for nvm for completion * Use $NVM_DIR when looking for nvm in nvm_prompt_info
- Loading branch information
1 parent
7654b16
commit a7de0fa
Showing
3 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# The addition 'nvm install' attempts in ~/.profile | ||
# Set NVM_DIR if it isn't already defined | ||
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm" | ||
|
||
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh | ||
# Load nvm if it exists | ||
[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh" |