From f77ab12c8fe82964ee0d379aebc2d20ceadb5242 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sun, 28 Apr 2019 09:50:31 +0300
Subject: [PATCH] Aliases for cleaning up SSH forwarding (and forwarding Docker
 sockets).

---
 .bashrc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.bashrc b/.bashrc
index 809c21a..589e73b 100644
--- a/.bashrc
+++ b/.bashrc
@@ -132,6 +132,8 @@ alias pip3='monitor python3 -m pip'
 alias rc_update="make --directory $HOME --always-make"
 alias gen-ssh-config="rc_update .ssh/config"
 alias bfg='java -jar $HOME/.local/share/bfg/bfg.jar'
+alias prune_docker_remote='find ~/.ssh -maxdepth 1 -type s -name "docker_*" -delete'
+alias close='ssh -fnNTS ~/.ssh/%C.sock -O exit'
 
 genpass () {
     bytes="${1:-32}"
@@ -294,4 +296,5 @@ if [ -x /usr/bin/dircolors ]; then
     alias less='less --raw-control-chars'
 fi
 
+prune_docker_remote
 prune_prerun
-- 
GitLab