brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: set -g status-position top moves the tmux status bar to the top

Tmux
~/tips/tip-tmux-status-position

set -g status-position top

Puts the tmux status bar at the top of the screen instead of the bottom.

Some people prefer the bar above the work, so it does not sit where the shell prompt jumps around.

set -g status-position top

Add the line to ~/.tmux.conf and reload. The setting accepts top and bottom, and tmux show -gv status-position prints the current value.

This is a matter of taste. A bar at the top is easier to find on a tall monitor, and it keeps the bottom line free so the cursor does not seem to jump when you scroll. Others like the bottom because that is where tmux puts it by default.

It combines with the other status options. You can colour it with status-style, change its content with status-left and status-right. All of them are plain options, so you can try them from the Ctrl-b : prompt before you write anything to the config file.

Some terminal apps draw a title bar or a tab bar at the top, so check that the bar does not look doubled.

Try it without risk: start a throwaway session with tmux new -s scratch, use the shortcut or command above there, look at what changes, and close the session again with tmux kill-session -t scratch. Nothing else on your machine is touched.

Further reading: tmux manual page (OpenBSD, official), tmux wiki: Getting Started (official), On this site: tmux list-keys | grep finds the binding you forgot, On this site: bind r to reload your tmux config without restarting anything

More Tmux tips tmux new -d -s report -x 200 -y 50 'top' tmux wait-for build-done set -g allow-passthrough on tmux kill-server Ctrl-b [ All Tmux tips (125) All topics

Link