Skip to content

Instantly share code, notes, and snippets.

@leodutra
Last active May 12, 2026 23:00
Show Gist options
  • Select an option

  • Save leodutra/6322e0e218a3302865847b4098d822eb to your computer and use it in GitHub Desktop.

Select an option

Save leodutra/6322e0e218a3302865847b4098d822eb to your computer and use it in GitHub Desktop.
Minimal Omarchy Developer Environment Install
#!/usr/bin/env bash
# sets MAKEFLAGS in /etc/makepkg.conf
# so makepkg (AUR/package builds) uses all CPU cores minus one for faster compilation
sudo bash -c 'grep -q "^MAKEFLAGS=" /etc/makepkg.conf && sed -i "/^MAKEFLAGS=/c\MAKEFLAGS=\"-j$(( $(nproc) - 1 ))\"" /etc/makepkg.conf || echo "MAKEFLAGS=\"-j$(( $(nproc) - 1 ))\"" >> /etc/makepkg.conf'
# ------------------------------------------------------------
# Helpers
# ------------------------------------------------------------
zshrc_append() {
# Append a line to ~/.zshrc only if it isn't already there.
local line="$1"
grep -qxF "$line" ~/.zshrc 2>/dev/null || echo "$line" >> ~/.zshrc
}
# update
yay -Syu
# install Paru (Rust AUR installer)
omarchy-pkg-aur-add paru
# install ZSH
omarchy-pkg-aur-add zsh
zsh
# install OhMyZsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s $(which zsh)
# install AI
omarchy-pkg-add claude-code
omarchy-pkg-add github-copilot-cli
omarchy-pkg-add openai-codex
omarchy-pkg-add opencode
# install editors
omarchy-pkg-add code
omarchy-pkg-add cursor-bin
omarchy-pkg-add zed
# add autoload -Uz compinit - compinit is loaded to enable tab completion
zshrc_append 'autoload -Uz compinit'
# add compinit to zshrc - compinit is called to initialize tab completion
zshrc_append 'compinit'
# install zsh-autocomplete
omarchy-pkg-add zsh-autocomplete
# add to zshrc
zshrc_append 'source "/usr/share/zsh/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh"'
# install zsh-autosuggestions
omarchy-pkg-add zsh-autosuggestions
# configure autosuggestion highlight style
zshrc_append 'ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=8"'
# add to zshrc
zshrc_append 'source "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh"'
# install zsh-patina for syntax highlighting
omarchy-pkg-aur-add zsh-patina
# add to zshrc
zshrc_append 'eval "$(zsh-patina activate)"'
# install zoxide for directory navigation
omarchy-pkg-add zoxide
# add to zshrc
zshrc_append 'eval "$(/usr/bin/zoxide init zsh)"'
# install starship for prompt
omarchy-pkg-add starship
# add to zshrc
zshrc_append 'eval "$(/usr/local/bin/starship init zsh)"'
# Install Brave Browser
omarchy-pkg-aur-add brave-bin
# Reload zsh config
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment