Skip to content

Instantly share code, notes, and snippets.

@ogavrisevs
Created October 26, 2012 09:35
Show Gist options
  • Save ogavrisevs/3957856 to your computer and use it in GitHub Desktop.
Save ogavrisevs/3957856 to your computer and use it in GitHub Desktop.
Install mercurila keyring extension (for cygwin users)
#!/bin/bash
#
# Simple script to add keyring extension for mercurial.
# (only for cygwin users with native hg installation from debina package)
# This keyring extension enables password save so you do not need to enter it every time.
#
# Script install steps:
# 1) keyring lib from python rep.
# 2) downloads extension
# 3) configure mercurial to use keyring extension
userName=user.Name
easy_install keyring
wget --no-check-certificate -d -A.py -O /cygdrive/c/Users/$userName/mercurial_keyring.py https://bitbucket.org/Mekk/mercurial_keyring/raw/default/mercurial_keyring.py
hg --config "extensions.mercurial_keyring=/cygdrive/c/Users/"$userName"/mercurial_keyring.py"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment