Skip to content

Instantly share code, notes, and snippets.

@TheAnonymous
Created June 28, 2015 20:12
Show Gist options
  • Select an option

  • Save TheAnonymous/21d648bb0f6f55d23e97 to your computer and use it in GitHub Desktop.

Select an option

Save TheAnonymous/21d648bb0f6f55d23e97 to your computer and use it in GitHub Desktop.

Revisions

  1. TheAnonymous created this gist Jun 28, 2015.
    20 changes: 20 additions & 0 deletions configure.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/usr/bin/env bash
    source easybashgui
    export supertitle="Git Konfiguration"
    #
    #####
    #
    ok_message "Willkommen.\nDieser GUI soll beim ersten einrichten helfen.Für Verbesserungsvorschläge bitte ein Issue auf Github aufmachen.\nBitte gebe im folgenden reale Daten an da diese in den Commitmessages erscheinen.\nViel Erfolg!"
    #
    #####
    #
    input 1 "Gebe deinen Namen ein:" "Max Musterman"
    name="$(cat "${dir_tmp}/${file_tmp}" )"
    input 1 "Gebe deine Emailadresse ein:" "[email protected]" && email="$(0< "${dir_tmp}/${file_tmp}" )"
    input 1 "Welchen Editor möchtest du nutzen um Commit Messages zu schreiben (nur relevant wenn du mit git über die Konsole arbeitest, falls nicht bitte weiter klicken.):" "nano" && editor="$(0< "${dir_tmp}/${file_tmp}" )"
    #
    #####
    #
    git config --global user.name "${name}"
    git config --global user.email $email
    git config --global core.editor $editor