### UPack Express Installation Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Installs UPack using a one-line curl command or a manual git clone and setup script. ```bash curl -sSL https://raw.githubusercontent.com/misterioso013/upack/main/boot.sh | bash ``` ```bash git clone https://github.com/misterioso013/upack.git cd upack ./setup.sh ``` -------------------------------- ### Installing VS Code Themes Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This command demonstrates how to install VS Code themes directly from the command line using the `code` command with the `--install-extension` flag. ```bash # Install theme via command code --install-extension zhuangtongfa.Material-theme ``` -------------------------------- ### Manage Node.js Versions with NVM Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Demonstrates commands for managing Node.js installations using NVM (Node Version Manager), including checking versions, listing installed versions, and switching between them. ```bash # Commands after installation node --version npm --version nvm list nvm use 18.17.0 ``` -------------------------------- ### API and Network Tool Usage Examples Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Illustrates using tools for interacting with APIs and networks, such as 'httpie' for HTTP requests and 'jq' for processing JSON data. Also shows benchmarking commands. ```bash # Friendly HTTP client http GET api.github.com/users/misterioso013 # Process JSON curl -s api.github.com/users/misterioso013 | jq '.name' # Benchmark commands hyperfine "grep -r 'pattern' ." "rg 'pattern'" ``` -------------------------------- ### Manage Environment Versions with Mise Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Provides commands for installing, using, and listing language runtime versions with 'mise'. Includes setting up mise and listing available remote versions. ```bash ./install/apps/optional/mise-setup.sh mise install python@3.11 mise use python@3.11 mise list mise ls-remote python ``` -------------------------------- ### Initialize Go Project Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Initializes a new Go module for a project. This command is typically run after installing Go. ```bash go version go mod init ``` -------------------------------- ### Modern CLI Tool Usage Examples Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Demonstrates practical usage of modern command-line interface tools, including file searching with 'fd', viewing files with 'bat', listing directories with 'exa', and system monitoring with 'btm'. ```bash # Find files fd "*.py" ~/ # View content with highlighting bat README.md # List with icons and colors exa -la --icons # Prettier system monitor btm ``` -------------------------------- ### Customizing UPack Post-Installation Source: https://github.com/misterioso013/upack/blob/main/README.md Provides examples of UPack CLI commands for managing the system after the initial setup, including checking status, installing specific applications, updating packages, listing available packages, and uninstalling UPack. ```bash # Check system status upack status # Install specific applications upack install discord obs-studio # Update all installed packages upack update # List available packages upack list --available # Uninstall UPack completely upack-uninstall ``` -------------------------------- ### UPack CLI Testing Commands Source: https://github.com/misterioso013/upack/blob/main/CONTRIBUTING.md Provides example bash commands for validating UPack setup scripts and testing core CLI functionalities like status, list, and installation. ```bash # Validate script syntax ./validate-setup.sh # Test specific components bash -n install/core/theme-setup.sh # Syntax check # Test CLI functionality upack status upack list upack install node # Test installation ``` -------------------------------- ### Manage Rust Toolchain and Packages Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Shows commands for verifying Rust installation and managing Rust packages using Cargo, the Rust build system and package manager. ```bash # Commands after installation rustc --version cargo --version cargo install ``` -------------------------------- ### UPack CLI Commands Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Provides a comprehensive set of commands for managing UPack and installed applications. Includes status checks, installation, updates, listing applications, monitoring, configuration, backup, cleanup, and system activity viewing. ```bash # View general system status upack status # Install applications upack install discord vscode chrome # Update all applications upack update # List available applications upack list --available # List installed applications upack list --installed # System monitoring upack monitor # Interactive TUI interface upack-tui # Apply specific configurations upack config gnome upack config terminal upack config hotkeys # Backup configurations upack backup # System health check upack doctor # System cleanup upack clean # View system activity upack activity ``` -------------------------------- ### Check .NET Version and Create Console App Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Verifies the installed .NET version and creates a new console application. Requires the Microsoft repository for installation. ```bash dotnet --version dotnet new console ``` -------------------------------- ### Bootstrap UPack Installation via Curl Source: https://github.com/misterioso013/upack/blob/main/README.md A simplified method to install UPack by downloading and executing the bootstrap script directly from GitHub using curl. This is an even easier way to start the automated setup. ```bash curl -sSL https://raw.githubusercontent.com/misterioso013/upack/main/boot.sh | bash ``` -------------------------------- ### Manage Ruby Versions and Gems Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Checks the Ruby version, lists installed Ruby versions managed by rbenv, and installs a Ruby gem. Assumes installation via rbenv. ```bash ruby --version rbenv versions gem install ``` -------------------------------- ### Manage Python Packages with pipx Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Illustrates commands for checking Python 3 version, listing globally installed Python applications with pipx, and installing new Python packages. ```bash # Commands after installation python3 --version pipx list pipx install ``` -------------------------------- ### Launch UPack GUI Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Starts the graphical user interface for UPack Manager. This can be done by searching for 'UPack Manager' in the system's activities or by running the 'upack gui' command in the terminal. ```bash upack gui ``` -------------------------------- ### Development Setup for UPack Contribution Source: https://github.com/misterioso013/upack/blob/main/CONTRIBUTING.md Steps to set up a development environment for contributing to UPack, including forking the repository, creating a feature branch, and running setup and validation scripts. ```bash # Fork the repository on GitHub git clone https://github.com/YOUR_USERNAME/upack.git cd upack # Create a feature branch git checkout -b feature/your-feature-name # Test your changes ./setup.sh # Test on a VM or container ./validate-setup.sh # Run validation # Make your changes and test upack status # Verify CLI functionality ``` -------------------------------- ### UPack VS Code Configuration Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Commands to open VS Code user settings and install extensions. ```bash # Open settings code ~/.config/Code/User/settings.json # Install extension code --install-extension ``` -------------------------------- ### UPack CLI Development: Command Structure Example Source: https://github.com/misterioso013/upack/blob/main/CONTRIBUTING.md Shows a typical structure for implementing commands in the UPack CLI tool, using a case statement to handle different package installation requests. ```bash # Each command should have consistent structure upack_install() { local package="$1" case "$package" in node|nodejs) install_nodejs ;; python) install_python ;; *) echo "❌ Unknown package: $package" echo "Run 'upack list --available' to see options" return 1 ;; esac } ``` -------------------------------- ### Check Java and Build Tool Versions Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Displays commands to verify the installed versions of Java (OpenJDK) and build tools like Maven and Gradle. ```bash # Commands after installation java --version mvn --version gradle --version ``` -------------------------------- ### UPack Bash Scripting: Error Handling with set -e Source: https://github.com/misterioso013/upack/blob/main/CONTRIBUTING.md Demonstrates essential error handling in Bash scripts using `set -e` to exit on any error, and a function example for installing components with checks for existing installations. ```bash set -e # Exit on any error # Function example with error handling install_something() { local item="$1" if ! command -v "$item" &> /dev/null; then echo "Installing $item..." # installation commands else echo "$item is already installed" fi } ``` -------------------------------- ### Troubleshooting GNOME Extensions Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This section provides commands to help troubleshoot GNOME Extensions not loading. It includes restarting the GNOME Shell, listing installed extensions, and reapplying configurations. ```bash # Restart GNOME Shell Alt + F2 → type "r" → Enter # Check extensions gnome-extensions list # Reactivate extensions bash config/gnome/apply-config.sh ``` -------------------------------- ### UPack Install Development Tools Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Executes a script to install various development tools. ```bash ./install/apps/optional/dev-tools.sh ``` -------------------------------- ### Check Deno Version Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Verifies the installed Deno runtime version. Assumes installation via official shell script. ```bash deno --version ``` -------------------------------- ### Install Development Languages Script Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Executes a shell script located at './install/apps/optional/dev-languages.sh' to install various development languages and their associated tools. ```bash ./install/apps/optional/dev-languages.sh ``` -------------------------------- ### Manage UPack CLI Commands Source: https://github.com/misterioso013/upack/blob/main/README.md Demonstrates various commands for the UPack CLI to manage development setups, install languages and applications, and perform system maintenance. It covers Git/GitHub configuration, language installation via NVM/pyenv/rustup, and application installation. ```bash # Development setup upack git # Complete Git & GitHub SSH setup upack git config # Configure Git user settings only upack git ssh # Setup GitHub SSH key only # Install development languages upack install node python rust # Install optional applications upack install discord obs-studio btop # System maintenance upack status # Show what's installed upack update # Update everything upack --help # See all commands ``` -------------------------------- ### Launch UPack TUI Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Opens the interactive terminal-based user interface for UPack, providing a command-line experience for managing the system. ```bash upack-tui ``` -------------------------------- ### Docker Compose Shortcuts Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet offers quick commands for managing Docker Compose projects. It includes starting services in detached mode, viewing logs in real-time, and stopping and removing containers and volumes. ```bash # Quick up dc up -d # Real-time logs dc logs -f # Down and clean dc down -v ``` -------------------------------- ### Check Zig Version Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Verifies the installed Zig compiler version. Assumes installation from GitHub releases. ```bash zig version ``` -------------------------------- ### System Monitoring Tools Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet introduces modern command-line tools for system monitoring: `btm` for a graphical system monitor, `dust` for disk usage, and `procs` for improved process viewing. ```bash # Modern monitor btm # Smart disk usage dust # Improved processes procs ``` -------------------------------- ### Check PHP and Composer Versions Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Verifies the installed versions of PHP and Composer. Assumes PHP is installed via apt. ```bash php --version composer --version ``` -------------------------------- ### Clone and Run UPack Setup Script Source: https://github.com/misterioso013/upack/blob/main/README.md This snippet shows how to clone the UPack repository from GitHub and execute its main setup script to automate the Ubuntu configuration. ```bash git clone https://github.com/misterioso013/upack.git cd upack ./setup.sh ``` -------------------------------- ### Check C/C++ Compiler Versions Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Checks the installed versions of GCC, G++, CMake. Assumes installation via apt. ```bash gcc --version g++ --version cmake --version ``` -------------------------------- ### Optimizing Bash Startup Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet provides methods to analyze and optimize Bash startup time. It includes timing the sourcing of `.bashrc` and using `bash -x` for profiling the execution of `.bashrc`. ```bash # View .bashrc loading time time (source ~/.bashrc) # Bash startup profiling bash -x ~/.bashrc ``` -------------------------------- ### Viewing UPack Logs Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet shows how to view UPack logs in real-time using `tail -f`. It also demonstrates how to run UPack commands with debug or verbose output for troubleshooting. ```bash # View logs in real-time tail -f ~/.local/share/upack/logs/upack.log # Debug mode UPACK_DEBUG=1 upack status # Verbose mode ./dev.sh ``` -------------------------------- ### Install Optional Applications with UPack CLI Source: https://github.com/misterioso013/upack/blob/main/README.md Demonstrates how to use the UPack CLI to install various optional applications for entertainment, communication, development, system tools, and programming languages. It shows the `upack install` command followed by the application name and a brief description. ```bash # Entertainment & Communication upack install discord # Voice/video chat for gamers upack install obs-studio # Live streaming and recording # Development & System Tools upack install btop # Modern system monitor upack install docker # Container platform # Programming Languages upack install node # Node.js via NVM upack install python # Python with package management upack install rust # Rust programming language ``` -------------------------------- ### Apply GNOME Settings and Configure Dock Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Shows commands for applying custom GNOME desktop environment settings and configuring the dock using UPack's utilities or custom scripts. ```bash # Apply GNOME settings upack config gnome # Configure hotkeys upack config hotkeys # Configure dock bash config/gnome/dock-config.sh ``` -------------------------------- ### Check Go Version Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Command to verify the installed version of the Go programming language. ```bash go version ``` -------------------------------- ### UPack Modern Command Replacements Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Shows modern command-line tool replacements for common utilities and provides examples. ```bash # Modern replacements ls → exa -la --icons cat → bat find → fd grep → rg (ripgrep) top → btm (bottom) ps → procs # Examples fd "*.py" # Find Python files rg "TODO" --type rust # Search in Rust files bat README.md # View file with syntax exa -la --tree # Tree listing btm # System monitor ``` -------------------------------- ### UPack Install Programming Languages Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Commands to install programming languages via the UPack optional menu or a direct script. ```bash # Via optional menu ./core/optional.sh # Direct ./install/apps/optional/dev-languages.sh ``` -------------------------------- ### Development Setup for UPack Source: https://github.com/misterioso013/upack/blob/main/README.md Provides instructions for setting up the UPack project for development, including cloning the repository, navigating into the directory, and running the CLI from the source. It highlights that the CLI automatically detects development mode. ```bash # Clone for development git clone https://github.com/misterioso013/upack.git cd upack # The CLI automatically detects development vs installed mode ./bin/upack --help # Run from source during development ``` -------------------------------- ### Configuring SSH Keys Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet guides through the process of generating SSH keys, adding them to the SSH agent, and testing the connection to GitHub. This is crucial for secure Git operations. ```bash # Generate SSH key (if you don't have one) ssh-keygen -t ed25519 -C "your-email@example.com" # Add to ssh-agent eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_ed25519 # Test GitHub ssh -T git@github.com ``` -------------------------------- ### Install Specific Development Tools via UPack CLI Source: https://github.com/misterioso013/upack/blob/main/README.md Shows how to use the UPack CLI to install specific development-related tools and applications such as btop (system monitor) and Docker (container platform). ```bash upack install btop # Modern system monitor upack install docker # Container platform ``` -------------------------------- ### Activate Starship Prompt Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Initializes the Starship prompt for the bash shell, which can be used if Starship was installed via Rust. This provides a highly customizable command-line prompt. ```bash # Activate Starship (if installed) eval "$(starship init bash)" ``` -------------------------------- ### Configure Bash Aliases for Docker Shortcuts Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Sets up bash aliases for common Docker and Docker Compose commands, streamlining container management. ```bash # Docker Shortcuts dc → docker-compose dps → docker ps di → docker images ``` -------------------------------- ### Docker Flow Commands Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Common bash commands for managing Docker services, including starting, viewing logs, and stopping containers. ```bash dc up -d # Start services dc logs -f app # View logs dc down # Stop services ``` -------------------------------- ### Troubleshoot UPack with Diagnostic Commands Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Outlines commands for diagnosing issues with UPack, including checking system health, viewing detailed status, and monitoring UPack's log file. ```bash # Check system health upack doctor # View detailed status upack status # View logs tail -f ~/.local/share/upack/logs/upack.log ``` -------------------------------- ### Switch Alacritty Terminal Theme Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Demonstrates how to switch the color theme for the Alacritty terminal emulator by creating symbolic links to theme files. ```bash # Switch theme ln -sf ~/.config/alacritty/themes/nord.toml ~/.config/alacritty/theme.toml ln -sf ~/.config/alacritty/themes/dracula.toml ~/.config/alacritty/theme.toml ``` -------------------------------- ### Check UPack Installation Directory and List Installed Apps Source: https://github.com/misterioso013/upack/blob/main/README.md Provides UPack CLI commands to verify the installation directory and to list all installed applications. These commands are useful for confirming the installation and managing installed software. ```bash # Check installation: `ls ~/.local/share/upack/` # View installed apps: `upack list --installed` ``` -------------------------------- ### Security Settings and Network Checks Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet includes commands for checking system security, such as scanning for open ports on localhost using `nmap` and viewing active network connections with `ss`. ```bash # Check open ports nmap localhost # View active connections ss -tulpn ``` -------------------------------- ### UPack Project Structure Overview Source: https://github.com/misterioso013/upack/blob/main/CONTRIBUTING.md Illustrates the directory layout of the UPack project, highlighting key components like the main entry point, installation scripts, CLI tools, configuration, assets, and documentation. ```tree upack/ ├── setup.sh # Main entry point ├── install/core/ # Core installation scripts ├── install/apps/ # Application installers ├── install/languages/ # Language-specific installers ├── bin/ # UPack CLI tools ├── config/ # Configuration templates ├── assets/ # Themes, fonts, images └── docs/ # Documentation ``` -------------------------------- ### Configuring Git SSH Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet assists in setting up and testing SSH connections for Git, specifically for GitHub. It includes running a script to configure SSH and then testing the connection to the Git server. ```bash # Configure SSH bash config/github/ssh-config.sh # Test connection ssh -T git@github.com ``` -------------------------------- ### Optimized Git Workflow Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet provides shortcuts for common Git operations, streamlining the workflow. It includes commands for quick status checks, adding all files, committing with a message, and pushing, as well as displaying a pretty log. ```bash # Quick status gs # Add all + commit + push in sequence ga . && gc -m "feat: new feature" && gp # Pretty log glog --since="2 days ago" ``` -------------------------------- ### Configure Bash Aliases for Git Shortcuts Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Defines convenient bash aliases for frequently used Git commands, simplifying version control operations. ```bash # Git Shortcuts gs → git status ga → git add gc → git commit gp → git push gl → git pull gd → git diff gb → git branch gco → git checkout glog → git log --oneline --graph --decorate ``` -------------------------------- ### Configure Bash Aliases for Utilities Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Defines useful bash aliases for common directory navigation, history access, clearing the screen, and reloading the bash configuration. ```bash # Utilities .. → cd .. ... → cd ../.. .... → cd ../../.. h → history c → clear reload → source ~/.bashrc ``` -------------------------------- ### Smart File and Code Searching Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet demonstrates efficient searching using `rg` (ripgrep) for code content and `fd` for files. It also shows how to search shell history for specific commands. ```bash # Search code rg "function.*user" --type js # Search files fd "config" ~/projects # Search history history | rg "docker" ``` -------------------------------- ### Customizing Alacritty Terminal Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet shows how to create and use custom Alacritty terminal profiles. It involves copying the default configuration file and then launching Alacritty with a specific configuration file. ```bash # Copy configuration cp ~/.config/alacritty/alacritty.yml ~/.config/alacritty/work.yml # Use specific profile alacritty --config-file ~/.config/alacritty/work.yml ``` -------------------------------- ### Configure Bash Aliases for Python Shortcuts Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Creates bash aliases for Python 3 commands, including running Python scripts, managing packages with pip, serving files, and formatting JSON. ```bash # Python Shortcuts py → python3 pip → pip3 serve → python3 -m http.server json → python3 -m json.tool ``` -------------------------------- ### Configure Bash Aliases for Modern Commands Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Sets up aliases in the bash shell to replace common command-line tools with modern, feature-rich alternatives like exa, bat, fd, rg, btm, procs. ```bash # Modern replacements ls → exa --group-directories-first ll → exa -la --group-directories-first la → exa -a --group-directories-first lt → exa --tree --level=2 cat → bat --paging=never less → bat find → fd grep → rg (ripgrep) top → btm (bottom) ps → procs ``` -------------------------------- ### Reload Shell Configuration Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md Provides commands to reload the current shell's configuration files, such as '.bashrc', and view shell settings like aliases and environment variables. ```bash # Reload .bashrc source ~/.bashrc # or reload # Check aliases alias # View all shell settings set ``` -------------------------------- ### Perform Complete UPack Removal and Reinstallation Source: https://github.com/misterioso013/upack/blob/main/README.md Explains the process for a complete removal of UPack and then reinstalling it from scratch. This involves running the `upack-uninstall` command, followed by cloning the repository and executing the setup script. ```bash # Complete removal upack-uninstall # Then reinstall git clone https://github.com/misterioso013/upack.git cd upack && ./setup.sh ``` -------------------------------- ### Reloading bash aliases Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet helps resolve issues with aliases not being recognized. It demonstrates how to check if the `.bash_aliases` file is being sourced by `.bashrc` and how to manually reload the aliases. ```bash # Check if .bash_aliases is being loaded grep -n "bash_aliases" ~/.bashrc # Reload aliases source ~/.bash_aliases ``` -------------------------------- ### UPack Repair Commands Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md A collection of commands for repairing and reconfiguring the UPack CLI and related system components. This includes reinstalling the CLI, reconfiguring the terminal and GNOME, and cleaning the UPack cache. ```bash # Reinstall UPack CLI ./install/apps/required/upack-app.sh # Reconfigure terminal bash config/terminal/bash-config.sh # Reconfigure GNOME bash config/gnome/apply-config.sh # Clear cache upack clean ``` -------------------------------- ### Forcing terminal colors Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet helps when the terminal is not displaying colors correctly. It shows how to check the current TERM environment variable and force it to 'xterm-256color' for better color support. ```bash # Check color support echo $TERM # Force colors echo 'export TERM=xterm-256color' >> ~/.bashrc source ~/.bashrc ``` -------------------------------- ### System Cleanup Commands Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet lists commands for performing regular system cleanup. It includes UPack's automatic cleanup, Ubuntu's package manager commands for removing unused packages and cleaning the cache, and Docker's system prune command. ```bash # Automatic cleanup upack clean # Advanced manual cleanup sudo apt autoremove sudo apt autoclean docker system prune -f ``` -------------------------------- ### Quick UPack Status Check and Command Listing Source: https://github.com/misterioso013/upack/blob/main/README.md Lists the UPack CLI commands for checking the status of the installation and displaying all available commands. These are essential for basic interaction and understanding the tool's capabilities. ```bash # Quick status check: `upack status` # List all commands: `upack --help` ``` -------------------------------- ### UPack Bash Scripting: Logging and Output Source: https://github.com/misterioso013/upack/blob/main/CONTRIBUTING.md Provides guidelines for consistent logging and output in UPack Bash scripts, including success, error, and debug messages, with examples of formatted output and conditional debug logging. ```bash # Use consistent output formatting echo "🔧 Installing theme components..." echo "✅ Theme installation completed" echo "❌ Error: Could not install theme" # For debug output [[ "${DEBUG:-false}" == "true" ]] && echo "Debug: Variable value is $var" ``` -------------------------------- ### Fixing PATH issues Source: https://github.com/misterioso013/upack/blob/main/docs/COMPLETE_GUIDE.md This snippet addresses issues where the PATH environment variable is not set correctly, preventing commands like 'upack' from being found. It shows how to check the current PATH, append a new directory to it, and reload the shell configuration. ```bash # Check PATH echo $PATH # Fix PATH echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc # Check if upack is in PATH which upack ``` -------------------------------- ### UPack Alacritty Configuration Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Specifies the location of Alacritty's main configuration file and demonstrates how to switch themes using symbolic links. ```bash # Main configuration ~/.config/alacritty/alacritty.yml # Switch theme ln -sf ~/.config/alacritty/themes/nord.toml ~/.config/alacritty/theme.toml ``` -------------------------------- ### UPack Essential Commands Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Common UPack CLI commands for managing applications, system status, and configurations. ```bash upack status # System status upack update # Update everything upack install # Install application upack list # List apps upack doctor # Diagnostics upack clean # Cleanup upack-tui # Visual interface ``` ```bash upack config gnome # Configure GNOME upack config terminal # Configure terminal upack config hotkeys # Configure shortcuts upack backup # Backup configurations ``` -------------------------------- ### UPack System Monitoring Commands Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Commands for monitoring system resources like CPU, memory, and disk space, including UPack-specific activity. ```bash btm # Modern monitor htop # Classic monitor df -h # Disk space free -h # Memory upack activity # UPack activity ``` -------------------------------- ### UPack Troubleshooting Diagnostics Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Commands to run diagnostics and check system status for troubleshooting. ```bash upack doctor # General check upack status # Detailed status echo $PATH # Check PATH which upack # Locate executable ``` -------------------------------- ### UPack Docker Monitoring Commands Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Commands for monitoring Docker containers, images, and system resource usage, including cleanup. ```bash docker ps # Running containers docker images # Images docker system df # Space usage docker system prune -f # Cleanup ``` -------------------------------- ### UPack CLI Help Function Source: https://github.com/misterioso013/upack/blob/main/CONTRIBUTING.md Displays the usage instructions and available commands for the UPack command-line interface. It uses a heredoc to format the output. ```bash show_help() { cat << EOF UPack CLI v2.0.0 - Ubuntu Productivity Pack Usage: upack [options] Commands: status Show system status install Install a package list List installed packages update Update all packages help Show this help Examples: upack install node upack status upack list --available EOF } ``` -------------------------------- ### UPack Manage Languages with Mise Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Commands for managing programming language versions using the 'mise' tool. ```bash mise install python@3.11 # Install version mise use python@3.11 # Use version mise list # List installed mise ls-remote python # List available ``` -------------------------------- ### UPack Common Troubleshooting Fixes Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Provides common fixes for issues like broken PATH, aliases not loading, GNOME Shell problems, and terminal reconfiguration. ```bash # Broken PATH echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc # Aliases not working source ~/.bash_aliases # GNOME Extensions Alt + F2 → "r" → Enter # Restart GNOME Shell # Reconfigure terminal bash config/terminal/bash-config.sh ``` -------------------------------- ### Network Commands Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Essential bash commands for checking network status, scanning local hosts, and testing connectivity. ```bash ss -tulpn # Ports in use nmap localhost # Local scan ping google.com # Test connectivity ``` -------------------------------- ### UPack Terminal Docker Aliases Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Shortcuts for common Docker Compose and Docker commands. ```bash dc # docker-compose dps # docker ps di # docker images ``` -------------------------------- ### UPack Logs Monitoring Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Commands to view UPack logs and enable debug mode for troubleshooting. ```bash tail -f ~/.local/share/upack/logs/upack.log # View logs UPACK_DEBUG=1 upack status # Debug mode ``` -------------------------------- ### UPack Bash Configuration Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Indicates the locations of Bash configuration files and how to reload the configuration. ```bash # Main configuration ~/.bashrc # Custom aliases ~/.bash_aliases # Reload source ~/.bashrc ``` -------------------------------- ### View UPack Assets Directory Source: https://github.com/misterioso013/upack/blob/main/README.md Shows how to list the contents of the UPack assets directory, specifically for icons, which is useful for troubleshooting missing desktop application icons. It uses the `ls` command to display the contents of the icons subfolder. ```bash # Icons are automatically installed to permanent location ls ~/.local/share/upack/assets/icons/ ``` -------------------------------- ### Daily Git Flow Commands Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md A streamlined sequence of bash commands for common daily Git operations including checking status, adding changes, committing, and pushing. ```bash gs # Check status ga . # Add everything gc -m "feat: new feature" # Commit gp # Push ``` -------------------------------- ### UPack Terminal Useful Aliases Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Convenient bash aliases for common file and directory operations, including replacements for standard commands. ```bash ll # ls detailed (or exa -la) la # ls with hidden (or exa -a) .. # cd .. ... # cd ../.. c # clear h # history reload # source ~/.bashrc ``` -------------------------------- ### UPack Terminal Python Aliases Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Aliases for running Python 3 commands and utilities. ```bash py # python3 pip # pip3 serve # python3 -m http.server json # python3 -m json.tool ``` -------------------------------- ### UPack Bash Scripting: Function Structure Source: https://github.com/misterioso013/upack/blob/main/CONTRIBUTING.md Illustrates the recommended structure for functions in UPack Bash scripts, emphasizing clear naming, documentation, idempotency checks, and success messages. ```bash # Clear function names and documentation install_application() { local app_name="$1" local description="$2" echo "📦 Installing $app_name..." # Check if already installed if command -v "$app_name" &> /dev/null; then echo "✅ $app_name already installed" return 0 fi # Installation logic here echo "✅ $app_name installation completed" } ``` -------------------------------- ### UPack Terminal Git Aliases Source: https://github.com/misterioso013/upack/blob/main/docs/QUICK_REFERENCE.md Common Git aliases for streamlining Git operations within the terminal. ```bash gs # git status ga # git add gc # git commit gp # git push gl # git pull gd # git diff glog # git log --oneline --graph ``` -------------------------------- ### UPack Bash Scripting: Variable Naming Conventions Source: https://github.com/misterioso013/upack/blob/main/CONTRIBUTING.md Defines the conventions for variable naming in UPack Bash scripts, differentiating between constants (uppercase) and local variables (lowercase), and demonstrating how to define script directories. ```bash # Use descriptive variable names UPACK_DIR="$HOME/.local/share/upack" ASSETS_DIR="$UPACK_DIR/assets" CONFIG_FILE="$UPACK_DIR/config/settings.conf" # Use uppercase for constants, lowercase for local variables readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" local temp_file="/tmp/upack_temp.$$" ``` -------------------------------- ### UPack Bash Scripting: Script Headers Source: https://github.com/misterioso013/upack/blob/main/CONTRIBUTING.md Defines the standard header format for Bash scripts within the UPack project, including a description, project affiliation, and required dependencies. ```bash #!/bin/bash # Description: Brief description of what this script does # Part of: UPack Ubuntu Productivity Pack # Requires: List any dependencies ``` -------------------------------- ### Add UPack to PATH Environment Variable Source: https://github.com/misterioso013/upack/blob/main/README.md Details how to manually add the UPack CLI to the system's PATH environment variable in case the `UPack command not found` error occurs. It involves appending the export command to `~/.bashrc` and sourcing the file. ```bash # Add to PATH manually if needed echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.