# allows sudo to use aliases
function sudo
	command sudo $argv
end


# better ls
function ls
	command ls -lhFG $argv
end

function la
	command ls -lhFGA $argv
end


# symlink by default
function ln
	command ln -s $argv
end


# work on directories
function cp
	command cp -r $argv
end

function rm
	command rm -rf $argv
end

function mkdir
	command mkdir -p $argv
end


# typed racket
function racket
	command racket -I typed/racket $argv
end

# nvim
function vim
	command nvim $argv
end


# rsync options
function rsync
	command rsync -avzHE $argv
end


# mkdir and cd into it
function mkcd
	command mkdir -p $argv
	cd $argv
end


# cd .. repeatedly
function up
	cd (eval printf ../%.0s (seq 1 $argv))
end

# allows sudo to use aliases
function sudo
	command sudo $argv
end


# better ls
function ls
	command ls -lhFG $argv
end

function la
	command ls -lhFGA $argv
end


# symlink by default
function ln
	command ln -s $argv
end


# work on directories
function cp
	command cp -r $argv
end

function rm
  switch (uname)
    case Darwin
      command trash $argv
    case Linux
      command rm -rf $argv
    end
end

function mkdir
	command mkdir -p $argv
end


# typed racket
function racket
	command racket -I typed/racket $argv
end

# nvim
function vim
	command nvim $argv
end


# rsync options
function rsync
	command rsync -avzHE $argv
end


# mkdir and cd into it
function mkcd
	command mkdir -p $argv
	cd $argv
end


# cd .. repeatedly
function up
	cd (eval printf ../%.0s (seq 1 $argv))
end

Make rm on macOS use trash
Make rm on macOS use trash

alpinebutterfly/dotfiles,alpinebutterfly/dotfiles,mpcsh/dotfiles