Skip to content

Instantly share code, notes, and snippets.

View cschindlbeck's full-sized avatar
🛠️
🦾🐋🤖⎈ ☁️

Chris Schindlbeck cschindlbeck

🛠️
🦾🐋🤖⎈ ☁️
View GitHub Profile
#####################################
# Useful commands that leverage fzf #
#####################################
# Fuzzy file open: Type ff and find file via fzf and open in nvim
ff() { nvim "$(find . -type f | fzf)"; }
# Fuzzy cd: Type fcd and select folder via fzf
fcd() { cd "$(find . -type d | fzf)"; }
# Fuzzy git branch checkout: Type fgc and select branch via fzf
fgc() { git switch "$(git branch -v | fzf | awk '{print $1}')"; }
# Fuzzy git add: Type fga and select file via fzf