Skip to content

Instantly share code, notes, and snippets.

@gomesar
Last active September 28, 2018 13:26
Show Gist options
  • Save gomesar/f9c32463a8abbe02470b9934eeb09db5 to your computer and use it in GitHub Desktop.
Save gomesar/f9c32463a8abbe02470b9934eeb09db5 to your computer and use it in GitHub Desktop.
tmuxToTmuxinatorLayout.sh
#!/bin/bash
# Scritp to list tmux windows and respectives layouts inputs to tmuxinator
# shows windows number, name and TmuxinatorLayout
tmux list-windows | sed -r 's/([0-9]+: .*) \([0-9]+ panes\).*layout (.*)] @.*/\1:\n layout: \2/g'
# tmux: https://github.com/tmux/tmux/wiki
# tmuxinator: https://github.com/tmuxinator/tmuxinator
# quick profile config guide: https://fabianfranke.de/2013/11/19/use-tmuxinator-to-recreate-tmux-panes-and-windows/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment