Back to articles
Stop Searching Your Tabs: Auto-Rename Terminator Tabs with Neovim & Zsh
How-ToTools

Stop Searching Your Tabs: Auto-Rename Terminator Tabs with Neovim & Zsh

via Dev.toThe Builder

If you’re like me, you usually have ten different terminal tabs open: one for the server, one for Neovim, a folder, one for the database, and maybe a few others for "vibe coding" sessions. The problem? Terminator (and most emulators) defaults to showing the process name like zsh or nvim . It's a nightmare to find the right project! Here is how I configured my Linux setup to automatically show the Folder Name in the tab whenever I run nvim . or move between projects. The Goal When I’m in /home/user/projects/project_name and I hit nvim . , I want my tab to say project_name , not nvim . Step 1: Force Neovim to Talk to Your Terminal Neovim is powerful enough to send "escape sequences" to your terminal emulator. We want it to set the titlestring to our current folder name on startup. Open your Neovim config (e.g., init.lua or your custom config) and add this: -- 1. Enable title support vim . opt . title = true -- 2. Create a function to grab the folder name and set the title vim . api . nvi

Continue reading on Dev.to

Opens in a new tab

Read Full Article
6 views

Related Articles