Skip to content

Instantly share code, notes, and snippets.

@BuddhiLW
Created July 16, 2024 22:06
Show Gist options
  • Save BuddhiLW/19f55649dcf7feb1fc52c3e77995aa0e to your computer and use it in GitHub Desktop.
Save BuddhiLW/19f55649dcf7feb1fc52c3e77995aa0e to your computer and use it in GitHub Desktop.
Install nibbler from source
#!/bin/bash
cd $DOTFILES/gitthings/
if ! [ -e $PWD/nibbler ]; then
git clone https://github.com/rooklift/nibbler.git
fi
NIBBLER_PATH="$PWD/nibbler"
path_file="/usr/local/bin/nibbler"
exec_nibbler_instructions(){
echo "cd $NIBBLER_PATH/files/src/" >> $path_file
echo "electron ." >> $path_file
}
sudo rm -rf $path
sudo touch $path_file && $(echo "#!/usr/bin/bash" > "$path_file")
sudo chmod a+x $path_file
exec_nibbler_instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment