Git Product home page Git Product logo

newhgrc's Introduction

#New-Hgrc

##Instant .hgrc New-Hgrc is a handy PowerShell mod for drumming up a new basic hgrc file.

##Installation It's as easy as 1[-2]-3!

You can skip to 3 by installing with PsGet

###1. Drop the binary into your Modules dir.

  • For local user account, ~\Documents\WindowsPowerShell\Modules
  • For machine, C:\Windows\System32\WindowsPowerShell\v1.0\Modules

###2. Add the following to your PowerShell profile ~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:

Import-Module New-Hgrc

###3. Add the following to your %HOMEPATH%\mercurial.ini:

[hooks]
post-init = powershell New-Hgrc

Life is easy if keyring is enabled -- check mercurial.ini:

[extensions]
mercurial_keyring=

##Details

  • With the post-init hook, New-Hgrc automatically fires every time you hg init a new repo.
  • You can also call this in the root of any initted Hg repo and it will build (overwriting any existing) a new hgrc.
  • Looks first to your mercurial.ini file for your username. You can also choose to use a different one.
  • Supports both [auth] section for pickup by keyring and [ui] for display in clients like TortoiseHg.
  • Thanks to Ricardo Amores Hernández for his ini-parser

newhgrc's People

Contributors

davebrothers avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

newhgrc's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.