Skip to content

Instantly share code, notes, and snippets.

@khornberg
Created February 4, 2014 04:16
Show Gist options
  • Save khornberg/8798074 to your computer and use it in GitHub Desktop.
Save khornberg/8798074 to your computer and use it in GitHub Desktop.
gitlist launcher for Ubuntu
[Desktop Entry]
Version=0.1
Name=GitList
Comment=An elegant and modern git repository viewer
Exec=/usr/local/bin/gitlist.sh
Icon=/opt/gitlist/web/img/favicon.png
Terminal=true
Type=Application
Categories=Utility;Application;
#!/bin/bash
# Path to gitlist folder
GITLIST_PATH=/opt/gitlist
# open default browser to url
xdg-open http://localhost:8000
# go to gitlist folder and launch built in php server and use index.php as the router
# the server will not display files if -t is used
cd $GITLIST_PATH
php -S localhost:8000 index.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment