Introducing Termix: A Smarter Way to Connect to Your Servers

What is Termix?

Termix is a simple Bash/Zsh function that:

  • Displays a clean ASCII banner every time you launch it.
  • Reads all your servers from ~/.ssh/config.
  • Lets you interactively search and select a server using fzf.
  • Instantly connects you to the chosen server over SSH.

Think of it as a fuzzy server launcher right inside your terminal.

Installation

Just drop the following function into your ~/.bashrc or ~/.zshrc:

# --- Aliases ---
alias ll='ls -la'
unalias termix 2>/dev/null
termix() {
  clear
  echo -e "\e[1;32m
████████╗███████╗██████╗ ███╗   ███╗██╗██╗  ██╗
╚══██╔══╝██╔════╝██╔══██╗████╗ ████║██║╚██╗██╔╝
   ██║   █████╗  ██████╔╝██╔████╔██║██║ ╚███╔╝
   ██║   ██╔══╝  ██╔══██╗██║╚██╔╝██║██║ ██╔██╗
   ██║   ███████╗██║  ██║██║ ╚═╝ ██║██║██╔╝ ██╗
   ╚═╝   ╚══════╝╚═╝  ╚═╝╚═╝     ╚═╝╚═╝╚═╝  ╚═╝
\e[0m"
  local server
  server=$(awk "/^Host / {print \$2}" ~/.ssh/config | \
           fzf --prompt="📡 Select a server: " \
               --height=20% \
               --border \
               --preview="echo Connecting to {}")
  [[ -n "$server" ]] && ssh -t "$server"
}

Then, reload your shell:

source ~/.bashrc   # or source ~/.zshrc

How It Works

  1. Run termix in your terminal.
  2. You’ll see the green ASCII banner.
  3. A fuzzy-searchable list of your servers (from ~/.ssh/config) appears.
  4. Start typing the server name to filter results.
  5. Hit Enter — and boom, you’re connected.

[Video] What is Termix?

Why Use Termix?

  • Speed: No more copy-pasting hostnames.
  • Convenience: Everything is fuzzy-searchable.
  • Productivity: Quickly switch between servers.
  • Aesthetics: That ASCII banner adds flair every time you connect.

Termix is not a big, heavy tool — it’s just a tiny shell function. But sometimes, the smallest scripts make the biggest difference.

Next time you need to SSH into a server, let Termix do the hard work for you.

Leave a Reply

Your email address will not be published. Required fields are marked *