forked from basecamp/omakub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: implement my opinionated flow
- Loading branch information
Showing
7 changed files
with
20 additions
and
48 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
set -e | ||
|
||
ascii_art='________ __ ___. | ||
\_____ \ _____ _____ | | ____ _\_ |__ | ||
/ | \ / \\__ \ | |/ / | \ __ \ | ||
/ | \ Y Y \/ __ \| <| | / \_\ \ | ||
\_______ /__|_| (____ /__|_ \____/|___ / | ||
\/ \/ \/ \/ \/ | ||
' | ||
ascii_art=$(cat <<'EOF' | ||
_ _ _ __ _ | ||
___ _ __ __ _| |____ _ ___ ___ ___| |__| |_ _ ___ / _(_)_ _ | ||
/ _ \ ' \/ _` | / / _` (_-</ -_)___| '_ \ | || / -_) _| | ' \ | ||
\___/_|_|_\__,_|_\_\__,_/__/\___| |_.__/_|\_,_\___|_| |_|_||_| | ||
EOF | ||
) | ||
|
||
echo -e "$ascii_art" | ||
echo "=> Omakub is for fresh Ubuntu 24.04 installations only!" | ||
echo "=> omakase-bluefin is for fresh bluefin-stable installations only!" | ||
echo -e "\nBegin installation (or abort with ctrl+c)..." | ||
|
||
sudo apt-get update >/dev/null | ||
sudo apt-get install -y git >/dev/null | ||
|
||
echo "Cloning Omakub..." | ||
rm -rf ~/.local/share/omakub | ||
git clone https://github.com/basecamp/omakub.git ~/.local/share/omakub >/dev/null | ||
if [[ $OMAKUB_REF != "master" ]]; then | ||
cd ~/.local/share/omakub | ||
git fetch origin "${OMAKUB_REF:-stable}" && git checkout "${OMAKUB_REF:-stable}" | ||
cd - | ||
fi | ||
echo "Cloning omakase-bluefin..." | ||
rm -rf ~/.local/share/omakase-bluefin | ||
git clone https://github.com/lukehsiao/omakase-bluefin.git ~/.local/share/omakase-bluefin>/dev/null | ||
|
||
echo "Installation starting..." | ||
source ~/.local/share/omakub/install.sh | ||
source ~/.local/share/omakase-bluefin/install.sh |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
OPTIONAL_APPS=("1password" "Spotify" "Zoom" "Dropbox") | ||
DEFAULT_OPTIONAL_APPS='1password,Spotify,Zoom' | ||
DEFAULT_OPTIONAL_APPS='Spotify,Zoom' | ||
export OMAKUB_FIRST_RUN_OPTIONAL_APPS=$(gum choose "${OPTIONAL_APPS[@]}" --no-limit --selected $DEFAULT_OPTIONAL_APPS --height 7 --header "Select optional apps" | tr ' ' '-') | ||
|
||
AVAILABLE_LANGUAGES=("Ruby on Rails" "Node.js" "Go" "PHP" "Python" "Elixir" "Rust" "Java") | ||
SELECTED_LANGUAGES="Ruby on Rails","Node.js" | ||
SELECTED_LANGUAGES="Rust","Python" | ||
export OMAKUB_FIRST_RUN_LANGUAGES=$(gum choose "${AVAILABLE_LANGUAGES[@]}" --no-limit --selected "$SELECTED_LANGUAGES" --height 10 --header "Select programming languages") | ||
|
||
AVAILABLE_DBS=("MySQL" "Redis" "PostgreSQL") | ||
SELECTED_DBS="MySQL,Redis" | ||
SELECTED_DBS="PostgreSQL,Redis" | ||
export OMAKUB_FIRST_RUN_DBS=$(gum choose "${AVAILABLE_DBS[@]}" --no-limit --selected "$SELECTED_DBS" --height 5 --header "Select databases (runs in Docker)") |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# Needed for all installers | ||
sudo apt update -y | ||
sudo apt upgrade -y | ||
sudo apt install -y curl git unzip | ||
brew install curl unzip | ||
|
||
# Run terminal installers | ||
for installer in ~/.local/share/omakub/install/terminal/*.sh; do source $installer; done |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
# Gum is used for the Omakub commands for tailoring Omakub after the initial install | ||
cd /tmp | ||
GUM_VERSION="0.14.3" # Use known good version | ||
wget -qO gum.deb "https://github.com/charmbracelet/gum/releases/download/v${GUM_VERSION}/gum_${GUM_VERSION}_amd64.deb" | ||
sudo apt-get install -y ./gum.deb | ||
rm gum.deb | ||
cd - | ||
# Gum is used for the omakase-bluefin commands for tailoring omakase-bluefin after the initial install | ||
brew install gum |
This file was deleted.
Oops, something went wrong.