Skip to content

Instantly share code, notes, and snippets.

@NathanaelGandhi
Created February 8, 2024 07:20
Show Gist options
  • Save NathanaelGandhi/676345b1d70d9f7b5def68771434ae3f to your computer and use it in GitHub Desktop.
Save NathanaelGandhi/676345b1d70d9f7b5def68771434ae3f to your computer and use it in GitHub Desktop.
Install OhMyBash Script
#!/bin/bash -eu
## Author: Nathanael Gandhi
################################################################################
if [ -d ~/.oh-my-bash ]
then
echo "Directory ~/.oh-my-bash already exists. Not installing"
else
echo "Downloading oh-my-bash"
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" --unattended
fi
################################################################################
wait
## Uncomment one custom theme you would like configured
# sed -i 's/OSH_THEME="font"/OSH_THEME="agnoster"/g' ~/.bashrc
sed -i 's/OSH_THEME="font"/OSH_THEME="vscode"/g' ~/.bashrc
if [ $? -eq 0 ]
then
echo "You may need to source your config or restart your shell:"
echo " source ~/.bashrc"
else
echo "Theme not modified"
fi
################################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment