---
title: "Discussion on \"How to clear TMUX scrollback buffer with zsh keybindings\" | Hashnode"
description: "Discussion on \"How to clear TMUX scrollback buffer with zsh keybindings\". tmux -V &> /dev/null\nif [[ $? -eq 0 ]]; then\n    function clear_tmux_scrollback_buffer() {\n        tmux clear-history\n    }\n    zle -N clear_tmux_scrollback_buffer\n    bindkey \"^[^L\" clear_tmux_scrollback_buffer\nfi\n\nhttps://github.com/fuadop/zsh-conf..."
url: "https://hashnode.com/posts/how-to-clear-tmux-scrollback-buffer-with-zsh-keybindings/675c0629841c1134b8112a26"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to clear TMUX scrollback buffer with zsh keybindings](https://blog.fuadolatunji.me/how-to-clear-tmux-scrollback-buffer-with-zsh-keybindings?utm_source=hashnode&utm_medium=feed)

tmux -V &> /dev/null if \[\[ $? -eq 0 \]\]; then function clear\_tmux\_scrollback\_buffer() { tmux clear-history } zle -N clear\_tmux\_scrollback\_buffer bindkey "^\[^L" clear\_tmux\_scrollback\_buffer fi https://github.com/fuadop/zsh-conf...

Dec 13, 2024 · 1 min read · blog.fuadolatunji.me  
Read the article

-   [#zsh](https://hashnode.com/tag/zsh)
-   [#bash](https://hashnode.com/tag/bash)

## Written by

[Fuad Olatunji](https://hashnode.com/@fuadop)

@fuadop

  
[View profile](https://hashnode.com/@fuadop)

Technology Enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
