summaryrefslogtreecommitdiff
path: root/.install-dotfiles.sh
diff options
context:
space:
mode:
authorRoger Gonzalez <rogergonzalez21@gmail.com>2020-03-16 11:29:15 -0300
committerRoger Gonzalez <rogergonzalez21@gmail.com>2020-03-16 11:29:15 -0300
commit7b59518acebb596775220e79f337ed6bac686b54 (patch)
tree4d525bac8718af0de6bc826a02f275163d3fcc0a /.install-dotfiles.sh
parent9a8e7df96eb343742d70cc515a5cdea08e3daa2d (diff)
Added my information to my config
Diffstat (limited to '.install-dotfiles.sh')
-rw-r--r--.install-dotfiles.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/.install-dotfiles.sh b/.install-dotfiles.sh
index e69bfc56..dbdab1fe 100644
--- a/.install-dotfiles.sh
+++ b/.install-dotfiles.sh
@@ -1,3 +1,9 @@
+#
+# | '__/ _ \ / _` / __| Roger González
+# | | | (_) | (_| \__ \ https://rogs.me
+# |_| \___/ \__, |___/ https://git.rogs.me
+# |___/
+#
git clone --bare https://git.rogs.me/me/dotfiles.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
@@ -5,10 +11,10 @@ function config {
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
- echo "Checked out config.";
- else
- echo "Backing up pre-existing dot files.";
- config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}
+echo "Checked out config.";
+else
+ echo "Backing up pre-existing dot files.";
+ config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}
fi;
config checkout
config config status.showUntrackedFiles no