Switch from nvs to n

This commit is contained in:
Manuel Thalmann 2024-03-20 22:40:37 +01:00
parent f91b5a02a1
commit e806b7c932
4 changed files with 9 additions and 32 deletions

View file

@ -1,20 +0,0 @@
#!/bin/bash
NVS_HOME="${NVS_HOME:-'$HOME/.nvs'}";
NVS_PATH="${NVS_PATH}";
bashProfile="/etc/bash.bashrc";
for profile in "$bashProfile" "/etc/fish/conf.d/nvs.fish" "/etc/zsh/zprofile"
do
if ! grep "\bNVS_HOME\b" "$profile"
then
{
echo "export NVS_HOME=\"$NVS_HOME\"";
echo 'source "'"$NVS_PATH"'/nvs.sh"';
} | sudo tee -a "$profile";
fi;
done;
source "$bashProfile";
nvs add latest;
nvs link latest;

View file

@ -1,11 +0,0 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
home_expression='$HOME/.nvs';
export NVS_HOME="$(bash -c echo $home_expression)";
git clone https://github.com/jasongin/nvs "$NVS_HOME";
NVS_HOME="$home_expression" \
NVS_PATH="$NVS_HOME" \
. "../../Config/NVS/install.sh";
popd > /dev/null;

View file

@ -0,0 +1,8 @@
#!/bin/bash
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
else
npm install -g n;
n install latest;
fi;

View file

@ -21,7 +21,7 @@ source "../../Debian/Software/git/install.sh";
source "../../Debian/Software/logo-ls/install.sh";
source "../../Debian/Software/VSCodium/install.sh";
source "../../Debian/Software/Visual Studio Code/install.sh";
source "../../Common/Software/NVS/install.sh";
source "../../Common/Software/n/install.sh";
source "../../Debian/Software/Python/install.sh";
source "../../Common/Software/pyenv/install.sh";
source "../../Common/Software/pipenv/install.sh";