Skip to content

Commit

Permalink
simplify kill script
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Feb 6, 2020
1 parent 0f122ab commit 4fdcea0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
4 changes: 2 additions & 2 deletions dotfiles/zsh.nix
Expand Up @@ -3,11 +3,11 @@
let
extras = [
./zsh/elm.zsh
./zsh/find-and-edit.zsh
./zsh/git.zsh
./zsh/jetpack.zsh
./zsh/jump.zsh
./zsh/kill-process.zsh
./zsh/find-and-edit.zsh
./zsh/kill.zsh
./zsh/nix.zsh
./zsh/nixify.sh
./zsh/root.zsh
Expand Down
12 changes: 0 additions & 12 deletions dotfiles/zsh/kill-process.zsh

This file was deleted.

7 changes: 7 additions & 0 deletions dotfiles/zsh/kill.zsh
@@ -0,0 +1,7 @@
# kill processes easily

fuzzy_kill() {
ps aux | fzf --multi --query="$@" | awk '{ print $2 }' | xargs kill
}

alias k=fuzzy_kill

0 comments on commit 4fdcea0

Please sign in to comment.