2021-06-27 16:27:40 +00:00
|
|
|
|
# Rename existing tools
|
|
|
|
|
alias _cat=`which cat`
|
|
|
|
|
alias _curl=`which curl`
|
|
|
|
|
alias _ls="/bin/ls"
|
|
|
|
|
alias _grep="/bin/grep"
|
|
|
|
|
alias _diff=`which diff`
|
|
|
|
|
alias _du=`which du`
|
|
|
|
|
alias _df=`which df`
|
|
|
|
|
alias _find=`which find`
|
|
|
|
|
alias _top=`which top`
|
|
|
|
|
alias _ps="/bin/ps"
|
|
|
|
|
alias _dig=`which dig`
|
|
|
|
|
|
2020-09-07 08:30:43 +00:00
|
|
|
|
# Aliases
|
|
|
|
|
alias cat=' bat '
|
|
|
|
|
alias curl='curlie'
|
2020-09-27 18:58:44 +00:00
|
|
|
|
alias ls=' exa --group-directories-first --icons --header --git --ignore-glob=.git'
|
2021-06-27 16:27:40 +00:00
|
|
|
|
alias grep='rg'
|
|
|
|
|
alias diff='delta'
|
|
|
|
|
alias du='dust'
|
|
|
|
|
alias df='duf -hide special'
|
|
|
|
|
alias find='fd'
|
|
|
|
|
alias bandwhich='sudo bandwhich'
|
|
|
|
|
alias top='btm'
|
|
|
|
|
alias ps='procs'
|
|
|
|
|
alias dig='dog'
|
|
|
|
|
|
|
|
|
|
alias machine-info='macchina -t Boron --bar'
|
|
|
|
|
alias watch='watch '
|
|
|
|
|
alias tmp='cd $(mktemp -d)'
|
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
|
|
|
|
}
|
2020-11-25 17:24:16 +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 -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY amazon/aws-cli'
|
2021-05-16 11:01:32 +00:00
|
|
|
|
|
|
|
|
|
git-clone() {
|
|
|
|
|
git clone $1
|
|
|
|
|
cd "$(basename "$1" .git)"
|
|
|
|
|
}
|