shownotes-w3m-rice/fzf_locate_fzf_playonlinux.md
2015-01-19 13:16:52 -08:00

683 B

Notes for video: https://www.youtube.com/watch?v=AbveiTAymy0

1. requirements (depends on what u using)

2. for ~/.zshrc or ~/.bashrc

fzf-locate() { xdg-open "$(locate "*" | fzf -e)" ;}
fzf-playonlinux() { playonlinux --run '$(ls ~/.PlayOnLinux/shortcuts | fzf -e)' ;}

3. for ~/.tmux.conf

bind-key -n 'C-]' new-window -n playonlinux \; send-keys "fzf-playonlinux && tmux kill-window\n"
bind-key -n 'M-\' new-window -n locate \; send-keys "fzf-locate && tmux kill-window\n"