Skip to content

Commit

Permalink
add neovim and docker
Browse files Browse the repository at this point in the history
  • Loading branch information
fearless-spider committed Mar 5, 2025
1 parent 42983f0 commit fa0a931
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions devenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ p_languages=$(gum choose "${AVAILABLE_LANGUAGES[@]}" --no-limit --height 16 --he
AVAILABLE_DATABASES=("PostgreSQL" "SQLite" "MongoDB" "MySQL")
databases=$(gum choose "${AVAILABLE_DATABASES[@]}" --no-limit --height 4 --header "What database(s) do you need?")

AVAILABLE_TOOLS=("Docker" "Makefile" "GitHub" "IRC" "Email" "Disk" "Terminal" "Cava")
tools=$(gum choose "${AVAILABLE_TOOLS[@]}" --no-limit --height 8 --header "What tool(s) do you need?")
AVAILABLE_TOOLS=("NeoVim" "Docker" "Makefile" "GitHub" "IRC" "Email" "Disk" "Terminal" "Cava")
tools=$(gum choose "${AVAILABLE_TOOLS[@]}" --no-limit --height 9 --header "What tool(s) do you need?")

if [ "$platform" = "linux" ]; then
distro=$(cat /etc/*-release | grep -w NAME | cut -d= -f2 | tr -d '"')
Expand Down Expand Up @@ -176,6 +176,10 @@ if [ "$platform" = "linux" ]; then
done

for tool in $tools; do
if [[ "$tool" = *"NeoVim"* ]]; then
sudo pacman -S neovim
fi

if [[ "$tool" = *"Docker"* ]]; then
sudo pacman -S docker docker-buildx docker-compose containerd
sudo usermod -aG docker $USER
Expand Down Expand Up @@ -299,6 +303,10 @@ if [ "$platform" = "linux" ]; then
done

for tool in $tools; do
if [[ "$tool" = *"NeoVim"* ]]; then
sudo apt-get install neovim
fi

if [[ "$tool" = *"Docker"* ]]; then
sudo install -m 0755 -d /etc/apt/keyrings
sudo wget -qO /etc/apt/keyrings/docker.asc https://download.docker.com/linux/ubuntu/gpg
Expand Down Expand Up @@ -403,6 +411,14 @@ if [ "$platform" = "linux" ]; then
done

for tool in $tools; do
if [[ "$tool" = *"NeoVim"* ]]; then
sudo yum install neovim
fi

if [[ "$tool" = *"Docker"* ]]; then
sudo yum install docker docker-compose
fi

if [[ "$tool" = *"GitHub"* ]]; then
sudo yum install gh
fi
Expand Down Expand Up @@ -499,12 +515,15 @@ elif [ "$platform" = "darwin" ]; then
done

for tool in $tools; do
if [[ "$tools" = *"Docker"* ]]; then
brew cask install docker
brew install hadolint
if [[ "$tool" = *"NeoVim"* ]]; then
brew install neovim
fi

if [[ "$tool" = *"Docker"* ]]; then
brew install docker docker-compose hadolint
fi

if [[ "$tools" = *"Makefile"* ]]; then
if [[ "$tool" = *"Makefile"* ]]; then
brew install checkmake
fi

Expand Down

0 comments on commit fa0a931

Please sign in to comment.