From a8bc569db4d80a6c8a9d2ad7c137e95f579f8b29 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Mon, 14 Sep 2020 22:50:23 +0200 Subject: [PATCH] add ssh alias and config --- .bashrc | 8 +++++++- .ssh/config | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .ssh/config diff --git a/.bashrc b/.bashrc index 96d3f2d..234c7a4 100644 --- a/.bashrc +++ b/.bashrc @@ -47,6 +47,8 @@ ex () ### ALIASES # Some are inspired from https://gitlab.com/dwt1/dotfiles/-/blob/master/.bashrc +alias sudo='sudo ' + # navigation alias ..='cd ..' alias ...='cd ../.' @@ -63,7 +65,7 @@ alias upgrade='pacman -Suy && yay -Suy' # git alias add='git add' alias branch='git branch' -alias commit='git commit' +alias commit='git commit -am' alias clone='git clone' alias pull='git pull' alias push='git push' @@ -71,4 +73,8 @@ alias merge='git merge' alias status='git status' alias rebase='git rebase' +# ssh +alias hindley='ssh hindley.adh.auro.re' +alias proxy_hindley='ssh -D 8080 hindley.adh.auro.re' + alias config='/usr/bin/git --git-dir=/home/me/.cfg/ --work-tree=/home/me' diff --git a/.ssh/config b/.ssh/config new file mode 100644 index 0000000..a8b16fe --- /dev/null +++ b/.ssh/config @@ -0,0 +1,14 @@ +AddKeysToAgent confirm + +Host hindley.adh.auro.re + User jmmineau + +Host azerty.fil.sand.auro.re + User jmmineau + +Host 10.128.0.* *.adm.auro.re + ProxyJump passerelle.auro.re + User histausse + +Host *.auro.re + User histausse