1 Star 0 Fork 82

鎴戞槸鏉庢檽楣/nvm-cn

forked from RubyMetric/nvm-cn 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
uninstall.sh 770 Bytes
一键复制 编辑 原始数据 按行查看 历史
ccmywish 提交于 2022-11-15 10:39 . update header
#!/usr/bin/env bash
# ---------------------------------------------------------------
# File : uninstall.sh
# Authors : ccmywish <ccmywish@qq.com>
# Created on : <2021-01-06>
# Last modified : <2021-01-06>
#
# uninstall:
#
# Uninstall nvm wholly
# ---------------------------------------------------------------
echo "=> 删除~/.nvm"
rm -rf $HOME/.nvm
echo "=> 删除相关环境变量"
sed -i '/nvm config/d' "${HOME}/.bashrc"
sed -i '/This loads nvm/d' "${HOME}/.bashrc"
sed -i '/NVM_NODEJS_ORG_MIRROR/d' "${HOME}/.bashrc"
sed -i '/nvm config/d' "${HOME}/.zshrc"
sed -i '/This loads nvm/d' "${HOME}/.zshrc"
sed -i '/NVM_NODEJS_ORG_MIRROR/d' "${HOME}/.zshrc"
echo "=> 删除nvm-update"
sudo rm /usr/local/bin/nvm-update
echo "=> 卸载完成!"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/ourprj/nvm-cn.git
git@gitee.com:ourprj/nvm-cn.git
ourprj
nvm-cn
nvm-cn
main

搜索帮助