all repos

dotfiles @ 7bea68f

my dotfiles
4 files changed, 16 insertions(+), 1 deletions(-)
fish: add some helper functions
Author: Olexandr Smirnov olexsmir@gmail.com
Committed at: 2025-07-23 23:43:36 +0300
Parent: 668c451
A config/fish/functions/pkill.fish

@@ -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
A config/fish/functions/sortw.fish

@@ -0,0 +1,8 @@

+function sortw -d "Wrapper around sort to save file after sorting" + if test (count $argv) -eq 0 + echo "No file provided" + return 1 + else + command sort $argv[1] -o $argv[1] + end +end
M config/fish/functions/srtdock.fish

@@ -1,3 +1,3 @@

-function srtdock +function srtdock -d "Start docker daemon" sudo systemctl start docker end