dotfiles/zsh/modules/alias/init.zsh

24 lines
523 B
Bash
Raw Normal View History

2019-05-04 05:46:59 +00:00
# ls shortcuts.
if [[ $OSTYPE = darwin* ]] ; then
2019-05-04 05:46:59 +00:00
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"
2020-05-28 17:29:02 +00:00
# Get the most recently modified object in the current directory.
alias lf="ls -1tr | tail -n 1"
2019-12-11 21:56:30 +00:00
2019-05-04 05:46:59 +00:00
alias docker="sudo docker"
alias dc="sudo docker-compose"
2020-05-28 17:29:02 +00:00
# Goes to a temp folder. This will be deleted on restart.
alias _="cd `mktemp -d` ; "
2020-05-28 17:29:02 +00:00
2019-05-04 05:46:59 +00:00
alias :q="exit"
2019-08-18 16:45:35 +00:00
2020-05-28 17:29:02 +00:00
# Because sometimes asking nicely gets things done.
2019-08-18 16:45:35 +00:00
alias please="sudo"