From 9c224ef8af5714ba2527851cc05f5f89a15e6f9c Mon Sep 17 00:00:00 2001 From: fabian Date: Sun, 1 May 2022 20:49:31 +0200 Subject: [PATCH] function for easy ssh access (mainly clone) for gitea with specific port --- home_external/.bash_aliases | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home_external/.bash_aliases b/home_external/.bash_aliases index f7fc77d..10683b3 100644 --- a/home_external/.bash_aliases +++ b/home_external/.bash_aliases @@ -17,3 +17,9 @@ alias nnn='nnn -dHrR' alias nn='n -dHrR' alias finds='find $* 2>/dev/null' alias c='clear' + + +gitea () { + # --local is default and thus implied + git --config core.sshCommand="ssh -p 222" $@ +}