Skip to content

Instantly share code, notes, and snippets.

@TerryFunggg
Created May 26, 2021 02:12
Show Gist options
  • Select an option

  • Save TerryFunggg/dc42aafb7ede059f404515b44e8825b5 to your computer and use it in GitHub Desktop.

Select an option

Save TerryFunggg/dc42aafb7ede059f404515b44e8825b5 to your computer and use it in GitHub Desktop.
fzf find file and open it
finder(){
du -a $1 | awk '{print $2}' | fzf | xargs -r $EDITOR
}
# Usage:
# finder {folder}
# eg: finder .config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment