Skip to content

Instantly share code, notes, and snippets.

@lamchau
Created March 18, 2016 20:30
Show Gist options
  • Save lamchau/a287e130aad4d60fe2c0 to your computer and use it in GitHub Desktop.
Save lamchau/a287e130aad4d60fe2c0 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
buffers=($(tmux list-buffer | cut -f1 -d ":"))
for i in "${buffers[@]}"; do
tmux delete-buffer -b "$i"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment