Show Menu
Cheatography

fzf-scripts.zsh Cheat Sheet by

Scripts used with fzf for automation in linux command line

Change Directory

ff
Search for a file and edit in $EDITOR
ffp
Preview file and copy the path to clipboard
ffh
Find file and cd there
cd .
Find Dir and cd there
fpop
Display the directory stack with FZF

Package Manager

fapti
Install package
faptr
Remove package

List files

fproj
List projects
ftemp
List templates for work
fchtc
List cheats­heets and cat
fchtce
List cheats­heets and edit
fchto
List org notes and cat
fchtoe
List org notes and edit
fwork
List git reposi­tories
falias
List projects
fdev
List connected external devices
fpdf
List pdfs
ftrack
List tracking spread­sheets
fclip
List clipboard history
 

Command Line

frm
Remove files recurs­ively
fmv
Intera­ctive mv wrapper
fman
Man without options will use fzf to select a page
fzf-eval
For instance:
fzf-eval ls
execut­e-fzf
pipe output of that command into fzf
fhistory
Repeat history, assumes zsh
fvars
Search env variables
frg
Find in File using ripgrep and open in editor
fifa
Find in file using ripgre­p-all
fimg
Image preview
compress <fi­le/­dir>
Compress one or multiple folder or files
extract <ar­chi­ve_­fil­e>
Extract any archive automa­tically
mkextract <ar­chi­ve_­fil­e>
Create a folder with the name of the archive and extract the archive in

Git

fgl
Git log browser with FZF
fgcom
Git commit history browser
fgs
Show git staging area
   
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Bash/ZSH Shourtcuts Cheat Sheet
          Bash Script Colors Cheat Sheet
          Linux Every Day Commands Cheat Sheet

          More Cheat Sheets by twilightt

          New Pentest Engagement Cheat Sheet