---
title: "tmux command line"
description: "https://youtu.be/SNu-4IrkjAs"
date: 2021-07-29
published: true
tags:
  - cli
  - linux
  - tmux
template: blog-post
---


[https://youtu.be/SNu-4IrkjAs](https://youtu.be/SNu-4IrkjAs){.youtube-embed}

So far we have covered a lot of tmux commands and how they map to keybindings
but these same commands can be executed at the command line.

## From the command line

Let's make a popup that displays our git status for 5s or until we close it
manually.  We can run the following command at the command line, in a split.

``` bash
tmux display-popup -E -d '#{pane_current_path}' 'git status && sleep 5'
```

## From the tmux command line

Or we can open the tmux command line and run it from tmux's built in command
line, which is very similar to bim EX mode. By default the tmux command line
can be opened with `prefix+[`.

``` bash
display-popup -E -d '#{pane_current_path}' 'git status && sleep 5'
```

> 🗒️ note that the tmux command is called by default when inside of tmux.

## Make it a keybinding

Finally we can make it a keybinding by adding a bind command ahead of our tmux
command, then we can execute this in the tmux command line or add it to our
`~/.tmux.conf`.

``` bash
bind s display-popup -E -d '#{pane_current_path}' 'git status && sleep 5'
```

<a href="/tmux-nav-2021/" class="wikilink" data-title="How I navigate tmux in 2021" data-description="change_speed = (speed) =&gt; [...document.querySelectorAll(&#39;video&#39;)].map(v =&gt; v.playbackRate=v.playbackRate+speed)" data-date="2021-05-11">How I navigate tmux in 2021</a>

> for more information on how I navigate tmux, check out this full post

Also check out the full YouTube
[tmux-playlist](https://www.youtube.com/playlist?list=PLTRNG6WIHETB4reAxbWza3CZeP9KL6Bkr)
to see all of the videos in this series.
