refactor ig
This commit is contained in:
parent
defde94c71
commit
bb266e3094
1
misc.sh
1
misc.sh
@ -2,3 +2,4 @@
|
|||||||
|
|
||||||
alias test='php bin/phpunit'
|
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'
|
13
update.sh
13
update.sh
@ -1,13 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd ~/.dotfiles
|
cd ~/.dotfiles
|
||||||
|
echo "Checking for dotfile updates..."
|
||||||
git fetch
|
git fetch
|
||||||
|
|
||||||
if [ $(git rev-parse HEAD) == $(git rev-parse @{u}) ];
|
if [ $(git rev-parse HEAD) == $(git rev-parse @{u}) ];
|
||||||
then
|
then
|
||||||
read -p "Dotfiles can be updated. Do you want to proceed? (y/n)" choice
|
read -p "Dotfiles can be updated. Do you want to proceed? (y/n)" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
y|Y ) echo "updating..." && git pull >> /dev/null && echo "updated";;
|
y|Y ) echo "Updating..." && git pull >> /dev/null && echo "Updated successfully";;
|
||||||
* ) echo "skipping";;
|
* ) echo "Skipping";;
|
||||||
esac
|
esac
|
||||||
|
else
|
||||||
|
echo "Dotfiles are up-to-date"
|
||||||
fi;
|
fi;
|
Loading…
x
Reference in New Issue
Block a user