From 19520230678da7a2a5ed93abb19c548273021855 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 23 Jul 2022 08:04:10 +0100 Subject: [PATCH] Remove commit-pkm --- .../.config/shell-common/functions.sh | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/shell-common/.config/shell-common/functions.sh b/shell-common/.config/shell-common/functions.sh index 493443f..2f5ccb6 100644 --- a/shell-common/.config/shell-common/functions.sh +++ b/shell-common/.config/shell-common/functions.sh @@ -40,22 +40,3 @@ function demoprompt() { clear fi } - -function commit-pkm() { - if [ -d $HOME/Documents/pkm ]; then - prevdir=$PWD - cd ~/Documents/pkm - if [[ $(git status --porcelain) ]]; then - echo "Changes detected, commiting..." - git add -A && git commit -a -m 'Manual savepoint' - else - echo "No changes detected" - fi - git fetch - branch=$(git rev-parse --abbrev-ref HEAD) - if [ $(git rev-parse ${branch}) != $(git rev-parse refs/remotes/origin/${branch}) ]; then - git push origin ${branch} - fi - cd $PREVDIR - fi -}