Peeking with tmux View article history Edit article

Published: , Updated:
Talks about: <a class="post-tag post-tag-peek" href="/tags/peek">peek</a>, and <a class="post-tag post-tag-tmux" href="/tags/tmux">tmux</a>

tmux uses can use the following snippet to peek at files. Place it in your .bashrc or similar file.

peek() { tmux split-window -p 33 "$EDITOR" "$@" }

Calling peek <file> will open <file> in lower third of tmux window.