Skip to content

Instantly share code, notes, and snippets.

@isDipesh
Last active January 20, 2025 14:25
Show Gist options
  • Save isDipesh/d213dc93f8f882b832ceb4dbdf88d1da to your computer and use it in GitHub Desktop.
Save isDipesh/d213dc93f8f882b832ceb4dbdf88d1da to your computer and use it in GitHub Desktop.
Development Environment Setup on Arch Linux
# Install common applications
sudo paman -S zsh guake zellij libreoffice-still gimp inkscape calibre vscode postgresql redis
yay -S anydesk-bin google-chrome telegram-desktop
# Oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# zsh plugins
sudo pacman -S zsh-syntax-highlighting
echo "source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i '/^source \$ZSH\/oh-my-zsh.sh/i plugins=(zsh-autosuggestions $plugins)' ~/.zshrc
# SCM Breeze
git clone https://github.com/scmbreeze/scm_breeze.git ~/.scm_breeze
~/.scm_breeze/install.sh
# Install NVM, and node
yay -S nvm
echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.zshrc
nvm install --lts
# `n`, simple node version manager
npm install -g n
# pnpm
wget -qO- https://get.pnpm.io/install.sh | sh -
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install autoenv switch for zsh
git clone "https://github.com/MichaelAquilina/zsh-autoswitch-virtualenv.git" "$ZSH_CUSTOM/plugins/autoswitch_virtualenv"
sed -i '/^source \$ZSH\/oh-my-zsh.sh/i plugins=(autoswitch_virtualenv $plugins)' ~/.zshrc
# Install Cursor AI IDE
mkdir -p ~/apps
curl -L https://downloader.cursor.sh/linux/appImage/x64 -o ~/apps/cursor.AppImage
chmod +x ~/apps/cursor.AppImage
curl -L https://mintlify.s3.us-west-1.amazonaws.com/cursor/images/logo/app-logo.svg -o ~/apps/cursor.svg
mkdir -p ~/.local/share/applications
cat > ~/.local/share/applications/cursor.desktop <<EOL
[Desktop Entry]
Name=Cursor IDE
Exec=$HOME/apps/cursor.AppImage
Icon=$HOME/apps/cursor.svg
Type=Application
Categories=Development;IDE;
Terminal=false
EOL
update-desktop-database ~/.local/share/applications
cat > ~/.local/bin/cursor <<'EOL'
#!/bin/bash
"$HOME/apps/cursor.AppImage" "$@"
EOL
chmod +x ~/.local/bin/cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment