Files
boxtools/to_system/home/l_samenv/.config/linse_profile
Markus Zolliker b3cd338a1e setuser: do not use LC_IDENTIFICATION anymore
rather allow GIT* env variables to pass through ssh
2025-04-28 13:31:49 +02:00

14 lines
470 B
Plaintext

alias dir='ls -alF'
export EDITOR=nano
. ~/.config/linse_setuser
function gitea_git() (
for repo in "$@"; do
cd ~/$repo
scp -q -r -o BatchMode=yes -o StrictHostKeyChecking=no l_samenv@linse-c:gitea/hooks .git/
grep -q 'https://gitea.psi.ch' .git/config || git remote set-url origin https://gitea.psi.ch/linse/${repo}.git
grep -q "$PWD/.git/hooks/get_gitea_token" .git/config || git config credential.helper "$PWD/.git/hooks/get_gitea_token"
done
)