Advertisement
yididiel7

FZF INSTALL

Apr 6th, 2024
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.19 KB | None | 0 0
  1. #get files to work with
  2. wget -r "https://filmsbykris.com/scripts/2020/"
  3.  
  4. sudo pacman -S fzf
  5. # or
  6. git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
  7. ~/.fzf/install
  8.  
  9. #list file
  10. fzf
  11.  
  12. #cat file
  13. cat "$(fzf)"
  14.  
  15. #find people info
  16. wget "https://filmsbykris.com/scripts/2020/people.txt"
  17. cat people.txt|fzf
  18. cat people.txt|fzf|cut -f3,5,8
  19. cat people.txt|fzf -m|cut -f3,5,8
  20.  
  21. #direct from website
  22. wget -qO- "https://filmsbykris.com/scripts/2020/employee.lst"|fzf|cut -d\| -f2
  23. wget -qO- "https://filmsbykris.com/scripts/2020/employee.lst"|fzf -m --prompt "Select Crew: "|cut -d\| -f2
  24.  
  25. apt install tmux
  26. tmux
  27. wget -qO- "https://filmsbykris.com/scripts/2020/employee.lst"|fzf-tmux -d 35% -m --prompt "Select Crew: "|cut -d\| -f2
  28.  
  29. #use to clipboard
  30. #code: https://pastebin.com/4haxFWPW
  31.  
  32. #fake email example
  33. clear;wget -qO- "https://filmsbykris.com/scripts/2020/auth.txt";read
  34.  
  35. #show vim buffer and file search
  36.  
  37. #use it as a menu for scripts
  38. echo -e "John\nJack\nJames\nSara\nSam"|fzf
  39. #in a script:
  40. https://filmsbykris.com/scripts/2020/fzf-names.sh
  41.  
  42. #use as a menu of functions in a script
  43. https://filmsbykris.com/scripts/2020/fzf-menu-example.sh
  44.  
  45. #show books and o for opening files
Tags: fzf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement