all repos

dotfiles @ f3c44d980c95d213f5ab00c4b14bba276f2e1a74

my dotfiles

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

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