diff options
author | Alan Pearce | 2013-04-28 20:54:18 +0100 |
---|---|---|
committer | Alan Pearce | 2013-04-28 20:54:18 +0100 |
commit | e7657d6ba54ad5714657cff9be86ec416d342a4c (patch) | |
tree | 50a2fada14e8d5f76ef890c4b860fbdd4faf812f /zsh/completion/_tmux_pane_words | |
parent | 6bec14c2d18c915a3510aba36a37e78a8b83170f (diff) | |
download | dotfiles-e7657d6ba54ad5714657cff9be86ec416d342a4c.tar.lz dotfiles-e7657d6ba54ad5714657cff9be86ec416d342a4c.tar.zst dotfiles-e7657d6ba54ad5714657cff9be86ec416d342a4c.zip |
Migrate repository from mercurial without history
Diffstat (limited to 'zsh/completion/_tmux_pane_words')
-rw-r--r-- | zsh/completion/_tmux_pane_words | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zsh/completion/_tmux_pane_words b/zsh/completion/_tmux_pane_words new file mode 100644 index 0000000..6ff9ce1 --- /dev/null +++ b/zsh/completion/_tmux_pane_words @@ -0,0 +1,10 @@ +local expl +local -a w + +if [[ -z "$TMUX_PANE" ]]; then + _message "not running inside tmux!" + return 1 +fi + +w=( ${(u)=$(tmux capture-pane \; show-buffer \; delete-buffer)} ) +_wanted values expl 'words from current tmux pane' compadd -a w |