refactor ig

This commit is contained in:
constantin 2024-09-04 15:30:06 +02:00
parent defde94c71
commit bb266e3094
2 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash
alias test='php bin/phpunit'
alias cover='php bin/phpunit --coverage-html=html-coverage'
alias cover='php bin/phpunit --coverage-html=html-coverage'
alias cd='z'

View File

@ -1,13 +1,16 @@
#!/bin/bash
cd ~/.dotfiles
echo "Checking for dotfile updates..."
git fetch
if [ $(git rev-parse HEAD) == $(git rev-parse @{u}) ];
then
read -p "Dotfiles can be updated. Do you want to proceed? (y/n)" choice
case "$choice" in
y|Y ) echo "updating..." && git pull >> /dev/null && echo "updated";;
* ) echo "skipping";;
esac
read -p "Dotfiles can be updated. Do you want to proceed? (y/n)" choice
case "$choice" in
y|Y ) echo "Updating..." && git pull >> /dev/null && echo "Updated successfully";;
* ) echo "Skipping";;
esac
else
echo "Dotfiles are up-to-date"
fi;