diff --git a/.bashrc b/.bashrc index 2144c5f409276c243618ae3f648200d630112f28..098be0f49ffebb171a7c19f85c39224795bb5065 100644 --- a/.bashrc +++ b/.bashrc @@ -66,12 +66,15 @@ alias ggo='sudo GOPATH=/usr/share/go go' alias tag-version='git tag -f v"$(cat VERSION)"' alias ecr-login='eval $(aws ecr get-login)' alias hostlocal='docker run --rm --privileged --net=host gliderlabs/hostlocal' +alias apt-daily='sudo apt update && sudo apt dist-upgrade --download-only --yes && sudo apt autoclean' + deduce-aws-region () { export AWS_DEFAULT_REGION="$(curl --silent \ http://169.254.169.254/latest/dynamic/instance-identity/document \ | sed -n 's/ *"region" : "\([a-z0-9\-]*\)"/\1/gp')" echo "$AWS_DEFAULT_REGION" } + ssh-keyscan-add () { (ssh-keyscan $@; cat $HOME/.ssh/known_hosts) | sort -u >> $HOME/.ssh/known_hosts }