diff --git a/.bashrc b/.bashrc index 809c21aa3e46670f74fc83b09ed3b09ede04c824..589e73bf89829be1b2f46f79bb6e26285467ec93 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