From e8f1f25a219ca3421996a7d1475a4e44949a1283 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Mon, 7 Sep 2020 08:30:43 +0000 Subject: [PATCH] Add '.dotfiles/aliases' --- .dotfiles/aliases | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .dotfiles/aliases diff --git a/.dotfiles/aliases b/.dotfiles/aliases new file mode 100644 index 0000000..6685966 --- /dev/null +++ b/.dotfiles/aliases @@ -0,0 +1,21 @@ +# Aliases +alias grep='grep --color=auto' +alias watch='watch ' +alias cat=' bat ' +alias curl='curlie' +alias tmp='cd $(mktemp -d)' +alias ls=' exa --group-directories-first --header --git' +lt() { + DEPTH=$(echo $1 | grep "^[0-9]*$") + + if [ "$DEPTH" = "" ] + then + DEPTH=2 + else + shift + fi + + ls --tree -L $DEPTH -I "cache|log|logs|node_modules|vendor" $@ +} + +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'