2020-09-07 08:30:43 +00:00
|
|
|
|
# Aliases
|
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
|
alias watch='watch '
|
|
|
|
|
alias cat=' bat '
|
|
|
|
|
alias curl='curlie'
|
|
|
|
|
alias tmp='cd $(mktemp -d)'
|
2020-09-27 18:58:44 +00:00
|
|
|
|
alias ls=' exa --group-directories-first --icons --header --git --ignore-glob=.git'
|
2020-09-07 08:30:43 +00:00
|
|
|
|
lt() {
|
|
|
|
|
DEPTH=$(echo $1 | grep "^[0-9]*$")
|
2020-09-27 18:58:44 +00:00
|
|
|
|
if [ "$DEPTH" = "" ]; then
|
2020-09-07 08:30:43 +00:00
|
|
|
|
DEPTH=2
|
|
|
|
|
else
|
|
|
|
|
shift
|
|
|
|
|
fi
|
2020-09-27 18:58:44 +00:00
|
|
|
|
ls -l --tree -L $DEPTH -I ".git|cache|log|logs|node_modules|vendor" $@
|
2020-09-07 08:30:43 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
alias aws='docker run --rm -ti -v ~/.aws:/root/.aws -v $(pwd):/aws -e AWS_PROFILE -e AWS_DEFAULT_REGION -e AWS_REGION amazon/aws-cli'
|