Last active
March 5, 2022 11:52
-
-
Save alator21/a4098c949764954384b42a840290b28d to your computer and use it in GitHub Desktop.
Setup nbasz with default options
This file contains hidden or 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
#!/usr/bin/env bash | |
NB_VERSION=1.0.0; | |
BASE_PATH="${HOME}/.nbasz"; | |
wget "https://github.com/alator21/descriptive.worm/releases/download/${NB_VERSION}/nb"; | |
chmod +x ./nb; | |
currentFolder=$(pwd); | |
mkdir "${BASE_PATH}"; | |
mkdir "${BASE_PATH}/profiles"; | |
mkdir "${BASE_PATH}/bin"; | |
cd /tmp; | |
git clone [email protected]:alator21/descriptive.worm.main.git; | |
mv /tmp/descriptive.worm.main/config.json "${BASE_PATH}"; | |
mv /tmp/descriptive.worm.main/profiles/main "${BASE_PATH}/profiles/main"; | |
git clone [email protected]:alator21/descriptive.worm.private.git; | |
mv /tmp/descriptive.worm.private/descriptive.worm.private-config.json "${BASE_PATH}"; | |
mv /tmp/descriptive.worm.private/profiles/descriptive.worm.private "${BASE_PATH}/profiles/descriptive.worm.private"; | |
mv /tmp/descriptive.worm.private/descriptive.worm.docker-config.json "${BASE_PATH}"; | |
mv /tmp/descriptive.worm.private/profiles/descriptive.worm.docker "${BASE_PATH}/profiles/descriptive.worm.docker"; | |
cd "${currentFolder}"; | |
./nb --init; | |
./nb --refresh; | |
./nb --add-extension main ./descriptive.worm.private-config.json | |
./nb --add-extension main ./descriptive.worm.docker-config.json | |
rm -rf /tmp/descriptive.worm.main; | |
rm -rf /tmp/descriptive.private.main; | |
mv nb "${BASE_PATH}/bin/nb"; | |
exec $SHELL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment