DEV Community

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay