Tag: shell
Alacritty Meets Tmux
Alacritty Meets Tmux
In this guide, we configure Alacritty, a fast and minimal GPU-accelerated terminal, with sensible defaults, a clean Monokai Pro theme, and macOS-inspired keybindings that seamlessly integrate with Tmux—a powerful terminal multiplexer. We install Alacritty alongside a Nerd Font for enhanced visuals, set up Tmux with useful plugins like tpm, tmux-resurrect, and tmux-continuum to manage sessions persistently, and customize both tools for an efficient and polished terminal workflow. This setup blends modern aesthetics with practical features, making your terminal experience both productive and enjoyable.
Asdf and .tool-versions
Asdf and .tool-versions
This guide covers how to install and configure asdf
, a flexible version manager for multiple languages. It walks through installing asdf
via Homebrew, enabling support for legacy version files like .nvmrc
, and setting up Node.js with the official plugin. You’ll also learn how to set a global default Node.js version and use a custom Bash function to automatically install the latest patch version for a given major release—streamlining the process of staying up to date.
Useful Snippets
Useful Snippets
This page contains a curated collection of useful command-line snippets for AWS CLI, Kubernetes, and general shell usage. Each snippet is accompanied by a short explanation to help understand its purpose and usage. These commands are designed to streamline common DevOps tasks such as monitoring infrastructure, inspecting logs, or parsing large outputs efficiently.
AWS Context Switch with Tab Autocompletion
AWS Context Switch with Tab Autocompletion
This article explains how to create a custom awsctx
command in Zsh to easily switch AWS profiles with tab autocompletion, similar to kubectx
for Kubernetes. It guides you through defining the awsctx
function, enabling Bash-style completion in Zsh using bashcompinit
, and writing a Bash-based completion script that uses compgen
to dynamically suggest AWS profile names. With this setup, users can quickly switch profiles using fuzzy search or direct tab-completion, streamlining AWS CLI workflows.