all repos

dotfiles @ 0400129

i use rach linux btw

dotfiles/config/fish/functions/sortw.fish (view raw)

1
function sortw -d "Wrapper around sort that saves file after sorting"
2
 if test (count $argv) -eq 0
3
    sort
4
  else if test (count $argv) -eq 1
5
    command sort $argv[1] -o $argv[1]
6
  else
7
    echo "I don't know what to do, too many arguments"
8
    return 2
9
  end
10
end