]> Sergey Matveev's repositories - dotfiles.git/blobdiff - tmux/.tmux/functions.zsh/tmux-fzf-procs
Fuzzy process finding
[dotfiles.git] / tmux / .tmux / functions.zsh / tmux-fzf-procs
diff --git a/tmux/.tmux/functions.zsh/tmux-fzf-procs b/tmux/.tmux/functions.zsh/tmux-fzf-procs
new file mode 100644 (file)
index 0000000..8a77bdf
--- /dev/null
@@ -0,0 +1,4 @@
+pgrep -l -f . |
+fzf -m --no-sort --keep-right --delimiter " " \
+    --preview="procstat -c {1} ; procstat -s {1} ; procstat -r {1} ; procstat -f {1}" |
+perl -lane 'print $F[0]'