dotfiles/zsh/modules/alias/init.zsh
James Patrick 3127de63fa Added alias for the most recent file.
Useful for things like `tail -f $(ls)`.
2020-01-13 14:26:32 -05:00

19 lines
318 B
Bash

# ls shortcuts.
if [[ $OSTYPE = darwin* ]] ; then
color_flag="-G"
else
color_flag="--color"
fi
alias ls="ls $color_flag"
alias l="ls -lh $color_flag"
alias la="ls -lha $color_flag"
alias lf="ls -1tr | tail -n 1"
alias docker="sudo docker"
alias dc="sudo docker-compose"
alias :q="exit"
alias please="sudo"