Skip to content

Instantly share code, notes, and snippets.

@alator21
Last active March 5, 2022 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alator21/a4098c949764954384b42a840290b28d to your computer and use it in GitHub Desktop.
Save alator21/a4098c949764954384b42a840290b28d to your computer and use it in GitHub Desktop.
Setup nbasz with default options
#!/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 git@github.com: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 git@github.com: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