all repos

dotfiles @ 22f50fa44e4048483f12328841c23bb7dd1b4573

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