From 67366a2356878b8faa366512300806dc9adcca33 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 10 Aug 2024 12:50:36 +0300 Subject: [PATCH] {bash,zsh}rc: maybe also handle accidental branch renaming? ':) --- rc/bashrc | 1 + rc/zshrc | 1 + 2 files changed, 2 insertions(+) diff --git a/rc/bashrc b/rc/bashrc index 3c559f11..b445c379 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -749,6 +749,7 @@ function shell-things { cd $SHELL_THINGS_REPO git remote set-url origin https://codeberg.org/Aminda/shell-things.git git fetch --all + git checkout -b cxefa origin/cxefa git pull echo "git config --global gpg.ssh.allowedSignersFile ~/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers" git verify-commit HEAD || exit 1 diff --git a/rc/zshrc b/rc/zshrc index b2789217..e85e8fdb 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -735,6 +735,7 @@ function shell-things { cd $SHELL_THINGS_REPO git remote set-url origin https://codeberg.org/Aminda/shell-things.git git fetch --all + git checkout -b cxefa origin/cxefa git pull echo "git config --global gpg.ssh.allowedSignersFile ~/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers" git verify-commit HEAD || exit 1