all repos

dotfiles @ 0330cf8a9e71fcfd5df9a37fad2bf4659a278d0a

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