adding gitk in the OS menu

/ Published in: Bash
Save to your folder(s)

I create this script which let me add the gitk in the Programming Application menu in my gnome this way I don't need to open a shell and go to the repository base to view the rep tree

Copy this code and paste it in your HTML
  1. #!/bin/sh
  2. #
  3. # needs zenity to work
  5. FOLDER=`zenity --file-selection --title="Aonde se encontra seu diretório git?" --filename="/mnt/htdocs/sandbox/FC/www" --directory `
  7. case $? in
  8. 0) (cd $FOLDER; pwd; gitk);
  9. esac

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.