Fix cd change on commit-pkm

This commit is contained in:
2021-03-12 10:50:05 +00:00
parent 93e7b4d8b0
commit be3816d83d

View File

@@ -55,6 +55,7 @@ function demoprompt() {
function commit-pkm() {
if [ -d $HOME/Documents/pkm ]; then
prevdir=$PWD
cd ~/Documents/pkm
if [[ `git status --porcelain` ]]; then
echo "Changes detected, commiting..."
@@ -62,5 +63,6 @@ function commit-pkm() {
else
echo "No changes detected"
fi
cd $PREVDIR
fi
}
}