From 5f434b97c3eab9c6e1ae1ef7cb4ae82bfdda2fd0 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 29 Oct 2017 09:48:08 +0200 Subject: [PATCH] - Prune .prerun. files (created for timing command execution). --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index 5f45736..f283b59 100644 --- a/.bashrc +++ b/.bashrc @@ -101,6 +101,7 @@ alias boxssh="unssh -i \$HOME/.ssh/bullguard-box_rsa -l root -p 64222" alias todo="vim \$HOME/Documents/TODO.yml" alias sudo="sudo " alias presentation='docker run -itv "$PWD:/project" adarnimrod/presentation' +alias prune_prerun='find "$HOME" -maxdepth 1 -name ".prerun.*" -print0 | grep -zv "$(pgrep -u "$(id -u)" bash)" | xargs -0r rm ' deduce_aws_region () { AWS_DEFAULT_REGION="$(python << EOF @@ -217,3 +218,4 @@ __prompt () { # shellcheck disable=SC1090 . "$HOME/Documents/Shore/bundle_certs/bundle_certs" +prune_prerun -- GitLab