Update dotfiles

This commit is contained in:
2020-09-27 19:58:44 +01:00
parent 387deecb80
commit cfed6832ad
5 changed files with 51 additions and 34 deletions

View File

@@ -4,18 +4,15 @@ alias watch='watch '
alias cat=' bat '
alias curl='curlie'
alias tmp='cd $(mktemp -d)'
alias ls=' exa --group-directories-first --header --git'
alias ls=' exa --group-directories-first --icons --header --git --ignore-glob=.git'
lt() {
DEPTH=$(echo $1 | grep "^[0-9]*$")
if [ "$DEPTH" = "" ]
then
if [ "$DEPTH" = "" ]; then
DEPTH=2
else
shift
fi
ls --tree -L $DEPTH -I "cache|log|logs|node_modules|vendor" $@
ls -l --tree -L $DEPTH -I ".git|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'

View File

@@ -3,9 +3,11 @@ export EDITOR='vim'
export VISUAL='code'
# AWS
export AWS_PROFILE=$(cat ~/.aws/profile)
export AWS_DEFAULT_REGION=eu-west-1
export AWS_REGION=eu-west-1
if [ -f ~/.aws/profile ]; then
export AWS_PROFILE=$(cat ~/.aws/profile)
export AWS_DEFAULT_REGION=eu-west-1
export AWS_REGION=eu-west-1
fi
# Node
export NODE_ENV=localhost