2019-05-04 05:46:59 +00:00
|
|
|
# ls shortcuts.
|
2019-12-13 02:46:16 +00:00
|
|
|
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.
|
2020-01-13 19:20:44 +00:00
|
|
|
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.
|
2022-01-06 04:15:17 +00:00
|
|
|
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"
|