Created
February 8, 2024 07:20
-
-
Save NathanaelGandhi/676345b1d70d9f7b5def68771434ae3f to your computer and use it in GitHub Desktop.
Install OhMyBash Script
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
#!/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