X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=09c2fa6fcc88bd13af03ba1d26479dba2af78ac2;hb=79fbdb30b001118daf1517cf2cbcb3f2870873b3;hp=2fd5d54cb767f2aa8f14292eb7f1ea19fe6dd23d;hpb=92c7bbecc4cc1f604fe2fae27c07870a6a017adb;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 2fd5d54..09c2fa6 100755 --- a/setup.sh +++ b/setup.sh @@ -5,12 +5,16 @@ . ../lib.sh -# Generate gitconfig. -generate m4 gitconfig -DGITIGNORE=`pwd`/gitignore -DOS=`os` +if installed git; then + generate m4 gitconfig -DGITIGNORE=`pwd`/gitignore -DOS=`os` + link gitconfig ~/.gitconfig +fi + +if installed tig; then + link tigrc ~/.tigrc +fi -# Link setup. -link gitconfig ~/.gitconfig if installed hg; then + generate m4 hgrc -DHGIGNORE=`pwd`/hgignore -DOS=`os` link hgrc ~/.hgrc - link hgignore ~/.hgignore fi