Forem

John Costanzo
John Costanzo

Posted on

2

Piping to fzf

So what are some good aliases that you have setup in your zshrc for using FZF? Let me give you some examples of what I have and maybe you can comment on some of your that might be interesting to others.

Some of these I have found on the internet:

alias gcorb='gco --track $(git branch -r | fzf)'
alias gcob='gco $(git branch | fzf)'
alias gmob='git merge $(git branch | fzf)'

fkill() {
  kill -9 $(ps ax | fzf | awk '{ print $1 }')
}

alias apps='dpkg-query --show | fzf'
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay