Skip to content

Instantly share code, notes, and snippets.

View HNygard's full-sized avatar

Hallvard Nygård HNygard

View GitHub Profile
#!/bin/bash
#Put this file in ~/.gnome2/nautilus-scripts directory
#Open the current directory of Nautilus in git cola
if [ "x$NAUTILUS_SCRIPT_CURRENT_URI" = "x" ]; then
workdir=$(pwd) #FIXME
else
workdir=$(echo $NAUTILUS_SCRIPT_CURRENT_URI| sed 's/file:\/\///g')
fi
#!/bin/bash
#Put this file in ~/.gnome2/nautilus-scripts directory
#Open the selected directory of Nautilus in git cola
workdir=$(echo $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS)
git-cola -r $workdir
#Comment the previous line and uncomment the next line,
#If want to keep git cola in English even if your system use an other language
#LANG=C && git-cola -r $workdir && LANG=fr_FR.UTF-8