From 14d66d2c9509aba402922c990b3684d5205d0f70 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Wed, 13 Jul 2016 20:16:30 +0300 Subject: [PATCH] - Added an apt-daily alias. --- .bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bashrc b/.bashrc index 2144c5f..098be0f 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 } -- GitLab