### Install and Use tmux (Terminal Multiplexer) Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Guide to installing and using tmux, a terminal multiplexer. It explains how to start new and named sessions, common key bindings for window and pane management, listing and attaching to sessions, and provides an example configuration file. ```bash # Install tmux # brew install tmux # macOS # apt install tmux # Ubuntu # Start new session mux # Start named session mux new -s myproject # Key bindings (prefix: Ctrl+b) # Ctrl+b c - Create new window # Ctrl+b n - Next window # Ctrl+b p - Previous window # Ctrl+b % - Split vertically # Ctrl+b " - Split horizontally # Ctrl+b d - Detach session # List sessions tmux ls # Attach to session tmux attach -t myproject # Example tmux configuration (~/.tmux.conf) cat > ~/.tmux.conf << 'EOF' # Set prefix to Ctrl+a set -g prefix C-a unbind C-b bind C-a send-prefix # Enable mouse support set -g mouse on # Start windows and panes at 1 set -g base-index 1 setw -g pane-base-index 1 # Reload config bind r source-file ~/.tmux.conf \; display "Reloaded!" EOF ``` -------------------------------- ### Install and Configure asdf Version Manager Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt This section details the installation and setup of asdf, a universal version manager. It covers cloning the repository, adding asdf to the shell environment, installing plugins for Node.js, Python, and Ruby, installing specific versions, and setting global versions. ```bash git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2 echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc asdf plugin add nodejs asdf plugin add python asdf plugin add ruby asdf install nodejs 18.12.0 asdf install python 3.11.0 asdf global nodejs 18.12.0 asdf global python 3.11.0 asdf list ``` -------------------------------- ### Install and Use fzf (Fuzzy Finder) Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Instructions for installing and using fzf, a command-line fuzzy finder. It includes installation via git or package managers, basic usage, and examples of integrating fzf with other commands for file searching, shell history, and version control. ```bash # Install via git git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ~/.fzf/install # Or via package manager # brew install fzf # macOS # apt install fzf # Ubuntu # Basic file search fzf # Search with preview fzf --preview 'cat {}' # Use with other commands vim $(fzf) cat $(fzf --multi) | wc -l git checkout $(git branch | fzf) ``` -------------------------------- ### Install and Configure Oh-My-Zsh Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Installs the Oh-My-Zsh framework via curl or wget and demonstrates how to enable plugins by modifying the .zshrc configuration file. ```bash # Install oh-my-zsh via curl sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # Or via wget sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # Enable plugins in ~/.zshrc plugins=(git docker kubectl node npm) # Apply changes source ~/.zshrc ``` -------------------------------- ### Install and Use exa (Modern ls Replacement) Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt This section covers installing and using exa, a modern replacement for the 'ls' command. It showcases basic listing, long format with Git status, tree view, showing hidden files, sorting by modification time, and adding icons. Recommended aliases are also provided. ```bash # Install exa # brew install exa # macOS # apt install exa # Ubuntu # Basic listing exa # Long format with git status exa -l --git # Tree view exa --tree --level=2 # Show all files including hidden exa -la # Sort by modification time exa -l --sort=modified # Add icons (requires nerd font) exa -l --icons # Recommended aliases for ~/.bashrc or ~/.zshrc alias ls='exa' alias ll='exa -l --git' alias la='exa -la --git' alias lt='exa --tree --level=2' ``` -------------------------------- ### Install and Use zoxide (Smart Directory Jumper) Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Instructions for installing and using zoxide, a smart directory jumper that learns your navigation habits. It covers installation, adding zoxide to shell configurations for bash and zsh, basic usage for jumping to directories, interactive selection, querying directories, and manual management. ```bash # Install zoxide # brew install zoxide # macOS # apt install zoxide # Ubuntu # Add to shell (~/.bashrc or ~/.zshrc) eval "$(zoxide init bash)" # For bash eval "$(zoxide init zsh)" # For zsh # Usage z projects # Jump to ~/projects or similar z doc # Jump to most frecent directory matching "doc" zi # Interactive selection with fzf # Query without jumping zoxide query projects # Add directory manually zoxide add /path/to/directory # Remove directory zoxide remove /path/to/directory ``` -------------------------------- ### Install and Configure Hyper Terminal Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Installs the web-based Hyper terminal and demonstrates how to manage plugins and configuration via the .hyper.js file. ```bash # macOS via Homebrew brew install --cask hyper # Install plugins via hyper CLI hyper install hyper-snazzy hyper install hypercwd hyper install hyper-search ``` ```javascript // Configuration in ~/.hyper.js module.exports = { config: { fontSize: 14, fontFamily: '"Fira Code", monospace', shell: '/bin/zsh', plugins: ['hyper-snazzy', 'hypercwd', 'hyper-search'] } }; ``` -------------------------------- ### Install Fish Shell and Oh-My-Fish Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Installs the Fish shell on macOS or Linux and sets up the Oh-My-Fish framework for theme and plugin management. ```bash # Install fish shell (macOS) brew install fish # Install fish shell (Ubuntu/Debian) sudo apt install fish # Install Oh-My-Fish framework curl -L https://get.oh-my.fish | fish # Install a theme omf install bobthefish # Install plugins omf install bass # Run bash commands in fish omf install z # Directory jumping ``` -------------------------------- ### Manage Packages with Chocolatey Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Installs the Chocolatey package manager on Windows and demonstrates how to install and search for software packages. ```powershell # Install Chocolatey (Run as Administrator) Set-ExecutionPolicy Bypass -Scope Process -Force [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) # Install packages choco install git nodejs vscode -y # Search for packages choco search docker ``` -------------------------------- ### Install and Use ripgrep (Code Search Tool) Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt This section covers the installation and usage of ripgrep, a fast code searching tool. It demonstrates basic searching, filtering by file type, case-insensitive searches, showing context, counting matches, and performing search and replace operations. ```bash # Install ripgrep # brew install ripgrep # macOS # apt install ripgrep # Ubuntu # choco install ripgrep # Windows # Basic search rg "function" src/ # Search specific file types rg "import" --type js # Case-insensitive search rg -i "error" logs/ # Show context around matches rg -C 3 "TODO" . # Count matches rg -c "console.log" src/ # Search and replace (preview) rg "oldFunction" --replace "newFunction" ``` -------------------------------- ### Install and Configure Alacritty Terminal Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Installs the GPU-accelerated Alacritty terminal emulator and provides a template for YAML-based configuration. ```bash # macOS via Homebrew brew install --cask alacritty # Ubuntu/Debian sudo add-apt-repository ppa:aslatter/ppa sudo apt update sudo apt install alacritty # Create configuration directory mkdir -p ~/.config/alacritty # Example configuration (~/.config/alacritty/alacritty.yml) cat > ~/.config/alacritty/alacritty.yml << 'EOF' window: dimensions: columns: 120 lines: 40 padding: x: 10 y: 10 font: normal: family: "Fira Code" style: Regular size: 12.0 colors: primary: background: '#1d1f21' foreground: '#c5c8c6' EOF ``` -------------------------------- ### Install and Configure Bash-it Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Clones the Bash-it repository and provides commands to enable specific shell aliases, completions, and plugins for the Bash shell. ```bash # Clone bash-it repository git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it # Run installer ~/.bash_it/install.sh # Enable aliases, completions, and plugins bash-it enable alias git bash-it enable completion docker bash-it enable plugin base # List available components bash-it show aliases bash-it show completions bash-it show plugins ``` -------------------------------- ### Manage Packages with Homebrew Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Provides common Homebrew commands for installing, searching, and maintaining packages and GUI applications on macOS. ```bash # Install Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # Search for packages brew search node # Install packages brew install node git wget # Install GUI applications (casks) brew install --cask visual-studio-code iterm2 docker # Update all packages brew update && brew upgrade # Clean up old versions brew cleanup ``` -------------------------------- ### Install and Configure Antigen for ZSH Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Sets up the Antigen plugin manager to handle ZSH bundles, including syntax highlighting and autosuggestions, by updating the .zshrc file. ```bash # Download antigen curl -L git.io/antigen > ~/antigen.zsh # Add to ~/.zshrc source ~/antigen.zsh # Load oh-my-zsh library antigen use oh-my-zsh # Load bundles antigen bundle git antigen bundle zsh-users/zsh-syntax-highlighting antigen bundle zsh-users/zsh-autosuggestions # Apply configuration antigen apply ``` -------------------------------- ### Update All Packages with Chocolatey Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt This command updates all installed packages using the Chocolatey package manager. The '-y' flag automatically confirms any prompts. ```bash choco upgrade all -y ``` -------------------------------- ### Run Project Display Script Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt This section provides instructions on how to run the 'terminals_are_sexy.sh' script, which displays an ASCII art banner for the project. It can be run directly via curl or by downloading and executing the script locally. ```bash # Run the terminals_are_sexy.sh script curl -sL https://raw.githubusercontent.com/k4m4/terminals-are-sexy/master/terminals_are_sexy.sh | sh # Or download and run locally # wget https://raw.githubusercontent.com/k4m4/terminals-are-sexy/master/terminals_are_sexy.sh # chmod +x terminals_are_sexy.sh # ./terminals_are_sexy.sh ``` -------------------------------- ### Contribute to the Terminals Are Sexy List Source: https://context7.com/k4m4/terminals-are-sexy/llms.txt Guidelines for contributing new resources to the 'terminals-are-sexy' project. It outlines the required format for submissions, including resource name, link, and a brief description, and details the pull request process. ```markdown # Contribution format for adding new resources: # [RESOURCE NAME](https://link-to-resource) - Brief description ending with period. # Example submission: # * [awesome-tool](https://github.com/user/awesome-tool) - A fantastic CLI tool for productivity. # Pull request process: # 1. Fork the repository # 2. Add your resource in the appropriate category # 3. Follow the format: [NAME](LINK) - DESCRIPTION. # 4. Submit pull request with clear title ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.