Forked from nowhereman/open_current_directory_in_git_cola.bash
Created
June 6, 2010 16:17
-
-
Save HNygard/427682 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment