Created
April 7, 2026 20:01
-
-
Save mmansoor/083e9fadfc7d86f4cda11f110e6143ee to your computer and use it in GitHub Desktop.
Install Necessary Tools in Ubuntu
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 | |
| # Exit immediately if a command fails | |
| set -e | |
| echo "Updating package list..." | |
| sudo apt update | |
| ######################################## | |
| # Core Utilities (Available via apt) | |
| ######################################## | |
| # System monitor (like top but better UI) | |
| sudo apt install -y htop | |
| # YouTube downloader (deprecated but still in apt) | |
| sudo apt install -y youtube-dl | |
| # Better YouTube downloader (actively maintained) | |
| sudo apt install -y yt-dlp | |
| # Git diff viewer (syntax highlighting) | |
| sudo apt install -y git-delta || true | |
| # Git TUI | |
| sudo apt install -y lazygit || true | |
| # Modern ls replacement | |
| sudo apt install -y eza || true | |
| # Better cat (Debian uses batcat instead of bat) | |
| sudo apt install -y bat | |
| # Process viewer (better ps) | |
| sudo apt install -y procs || true | |
| # Markdown viewer in terminal | |
| sudo apt install -y glow || true | |
| # Disk usage analyzer (better du) | |
| sudo apt install -y dust || true | |
| # Static code analysis (security scanning) | |
| sudo apt install -y semgrep || true | |
| # Advanced system monitor | |
| sudo apt install -y btop || true | |
| ######################################## | |
| # Tools NOT in apt (Install via script) | |
| ######################################## | |
| # Install yazi (Rust-based file manager) | |
| echo "Installing yazi..." | |
| if ! command -v yazi &> /dev/null; then | |
| curl -sS https://raw.githubusercontent.com/sxyazi/yazi/main/scripts/install.sh | bash | |
| fi | |
| # Install rtk (not in apt - install via cargo if available) | |
| echo "Installing rtk..." | |
| if command -v cargo &> /dev/null; then | |
| cargo install rtk || true | |
| else | |
| echo "Cargo not found. Skipping rtk." | |
| fi | |
| # Install opencode (anomalyco) | |
| echo "Installing opencode..." | |
| if ! command -v opencode &> /dev/null; then | |
| curl -fsSL https://raw.githubusercontent.com/anomalyco/opencode/main/install.sh | bash | |
| fi | |
| ######################################## | |
| # Optional Fixes / Aliases | |
| ######################################## | |
| # Fix bat command name (Ubuntu uses batcat) | |
| if command -v batcat &> /dev/null && ! command -v bat &> /dev/null; then | |
| echo "Creating bat alias..." | |
| mkdir -p ~/.local/bin | |
| ln -sf /usr/bin/batcat ~/.local/bin/bat | |
| fi | |
| ######################################## | |
| # Done | |
| ######################################## | |
| echo "All tools installed successfully!" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run the following command to download and execute the installer script directly:
curl -fsSL https://gist.githubusercontent.com/mmansoor/083e9fadfc7d86f4cda11f110e6143ee/raw/dd92c6616f6a0355ad63bf41ddeb8b95a54f35e1/install_tools.sh | bash