Created
August 9, 2020 01:15
-
-
Save steelcowboy/5b62b7ac44c7e425c504a86ba511d1dc to your computer and use it in GitHub Desktop.
Demo nvm install in ksh
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
~ [2]$ echo $SHELL | |
/bin/sh | |
~ [3]$ ls -a | |
. .. .bash_logout .bashrc .kshrc .profile .sh_history install.sh | |
~ [4]$ ./install.sh | |
=> Downloading nvm from git to '/home/testuser/.nvm' | |
=> Cloning into '/home/testuser/.nvm'... | |
remote: Enumerating objects: 290, done. | |
remote: Counting objects: 100% (290/290), done. | |
remote: Compressing objects: 100% (257/257), done. | |
remote: Total 290 (delta 35), reused 97 (delta 20), pack-reused 0 | |
Receiving objects: 100% (290/290), 163.27 KiB | 5.27 MiB/s, done. | |
Resolving deltas: 100% (35/35), done. | |
=> Compressing and cleaning up git repository | |
=> Appending nvm source string to /home/testuser/.kshrc | |
=> bash_completion source string already in /home/testuser/.kshrc | |
=> Close and reopen your terminal to start using nvm or run the following to use it now: | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
~ [5]$ ksh | |
/home/testuser/.kshrc[95]: .[3801]: local: local can only be used in a function | |
/home/testuser/.kshrc[95]: .[3771]: local: local can only be used in a function | |
/home/testuser/.kshrc[95]: .[981]: local: local can only be used in a function | |
/home/testuser/.kshrc[95]: .[3773]: local: local can only be used in a function | |
/home/testuser/.kshrc[95]: .[3775]: local: local can only be used in a function | |
~ [6]$ command -v nvm | |
nvm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment