How to Enable Hyperlinks in TMUX Config File

Abstract: Enable clickable hyperlinks in Tmux by configuring allow-passthrough and terminal-overrides to pass escape sequences to the host terminal.

Created: 2026-10-07 by

To enable hyperlinks in your Tmux configuration, you must set the allow-passthrough option to on and configure terminal capabilities. This allows escape sequences generated by applications like Git or VS Code to pass through the Tmux layer directly to your host terminal emulator. Without these settings, hyperlink click events are intercepted or stripped, breaking navigation.

Understanding Terminal Hyperlink Support

Modern terminal emulators support clickable text links using specific OSC (Operating System Command) escape sequences. These sequences typically follow the format 8;params;uri48;;. When an application outputs this sequence, the terminal renders the text as a hyperlink. However, when you run an application inside a Tmux session, the terminal emulator does not see the raw output from the inner application. Instead, it sees the output from the Tmux process itself. By default, Tmux acts as a filter that strips or modifies certain control characters to maintain its own internal state management. This behavior prevents hyperlink sequences from reaching the outer terminal emulator. To fix this, you need to tell Tmux to stop filtering these specific passthrough sequences. This is primarily achieved through the terminal-overrides and allow-passthrough options.

Configuring the Tmux Config File

The most reliable way to enable hyperlinks is to edit your ~/.tmux.conf file. You should add specific lines that instruct Tmux to allow the passage of these escape codes. First, ensure that your Tmux version supports this feature. Most modern versions (3.2 and above) handle this well, but older versions may require more complex workarounds. Add the following line to your config file:
set -g allow-passthrough on
This global setting tells Tmux to pass through any escape sequences that start with ESC ] 8 ;, which is the standard prefix for hyperlinks. If you are using a newer version of Tmux, this single line might be sufficient for basic functionality. However, some terminals require additional capability flags to correctly interpret the link data. For broader compatibility, especially with terminals like iTerm2, Alacritty, or Windows Terminal, you may also need to update the terminal-overrides setting. This setting maps specific terminal type strings to their capabilities. Add the following to your config:
set -ga terminal-overrides ",xterm-256color:Tc"
The Tc flag enables true color support, which often accompanies hyperlink support in modern terminal implementations. While not strictly required for all hyperlink types, it ensures that the visual rendering context is compatible with advanced features. After adding these lines, save the file and reload your Tmux configuration by running :source-file ~/.tmux.conf inside a Tmux session, or restart your terminal entirely.

Verifying the Setup

Once the configuration is applied, you can verify that hyperlinks are working correctly. Open a new Tmux window and launch a command that generates hyperlinks. The most common tool for testing this is Git. Run a command like git log --oneline or view a file with less if it contains URL references. In many cases, Git will automatically convert commit hashes or URLs into clickable links if the terminal supports it. Click on one of these links. If the setup is correct, your system's default web browser should open immediately. If nothing happens, the sequence was likely still filtered by Tmux. You can also test with a simple echo command to generate a raw hyperlink sequence:
echo -e "\033]8;;https://example.com\007Example Link\033]8;;\007"
Replace https://example.com with any valid URL. If clicking the text opens the page, your Tmux configuration is successfully passing through the hyperlink data. If it fails, check that you have restarted the Tmux server or reloaded the config file after making changes.

Troubleshooting Common Issues

If hyperlinks still do not work after applying the settings, consider the following potential causes. First, verify your Tmux version. Older versions may not support allow-passthrough natively. You can check your version by running tmux -V. If you are on an outdated version, consider upgrading Tmux via your package manager. Second, ensure that your host terminal emulator actually supports hyperlinks. Not all terminal applications implement this feature. Popular terminals like iTerm2, Alacritty, WezTerm, and Windows Terminal have robust support, while some lightweight or legacy terminals may not. Check your terminal's documentation to confirm hyperlink support. Third, some applications inside Tmux may not generate hyperlink sequences even if the terminal supports them. For example, older versions of Vim or specific CLI tools might not output the necessary escape codes. In such cases, enabling hyperlinks in Tmux will not help unless the inner application is configured to produce them. For users who frequently switch between different environments, you might find it useful to adjust other Tmux behaviors. For instance, managing pane layouts can improve visibility when debugging complex output. See How to Change Tmux Tile Layout to Arrange 8 Panes into 3x3 Instead of 4x2 for tips on optimizing your workspace structure. Additionally, if you use custom keybindings, ensure they do not conflict with hyperlink interactions. Reviewing Keybind Tmux in Alacritty: A Tech Support Guide can help you avoid binding keys that interfere with mouse events or special sequences.

Frequently Asked Questions

Does this work with SSH sessions?

Yes, hyperlinks work over SSH as long as both the local and remote terminals support passthrough. Ensure that the remote server's Tmux config also has allow-passthrough on. The escape sequences travel through the SSH tunnel intact if Tmux on the remote side is configured correctly.

Why do my links look underlined but not clickable?

This usually means the terminal recognizes the escape sequence but does not have the mouse protocol enabled for link detection. Some terminals require explicit mouse mode activation. Check your terminal settings to ensure that "Enable Mouse Mode" or similar options are turned on for hyperlink interaction.

Can I disable hyperlinks for specific panes?

Tmux applies allow-passthrough globally to the session. You cannot easily disable it for just one pane without affecting others. However, you can create separate sessions with different configurations if you need distinct behaviors for different workflows.

What if I am using an old version of Tmux?

If your version is below 3.2, allow-passthrough may not exist. You would need to upgrade Tmux or use terminal-specific overrides in terminal-overrides to mimic the behavior. Upgrading is the recommended path as older versions lack many performance and compatibility improvements.

Do IDEs inside Tmux support hyperlinks?

Most modern IDEs like VS Code or JetBrains products support hyperlinks within their integrated terminals. If you run them inside Tmux, the previous configuration steps apply. Ensure the IDE's terminal integration is set to pass through escape codes rather than handling them internally.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More