make the script more general

change the repo path to ~/ because the configs might as well lay in a different
home directory. In addition I've add a variable which brings the user back to
his starting point.
This commit is contained in:
Andreas 2016-09-17 23:31:09 +02:00
parent cc5b1f58d9
commit 44c512226f
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#! /bin/bash
cd /home/andreas/dot_files/
directory=`pwd`
cd ~/git_repos/dot_files/
git add .
git commit -m "update configs"
git push
cd $directory