mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
fish: add some helper functions
This commit is contained in:
parent
668c451b55
commit
7bea68f38a
4 changed files with 16 additions and 1 deletions
7
config/fish/functions/pkill.fish
Normal file
7
config/fish/functions/pkill.fish
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
function pkill -d "Wrapper around pkill to use fuzzy finder when no argument given"
|
||||
if test (count $argv) -eq 0
|
||||
ps ax -o user=,pid=,%cpu=,%mem=,stat=,time=,command= | fzf | awk '{print $2}' | xargs kill
|
||||
else
|
||||
command pkill $argv
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue