Personal tools
You are here: Home resources sw universal web development web2py Setting up OS X to work with the experimental web2py mercurial versioning system

Setting up OS X to work with the experimental web2py mercurial versioning system

— filed under: , , , , , , ,

How to set your Mercurial HGUSER variable in OSX

MR8Ye8Fs8DU3

Setting up OS X to work with web2py included versioning

Setting Environment Variables

Applies to most versions of 'nix' like Linux, OS X, Unix, BSD, AIX...

For bash or sh shell

(Most people)

Backup your current bash_profile

cp ~/.bash_profile ~/.bash_profile.manual_edit.original

Edit .bash_profile

nano ~/.bash_profile

Add something like the following to the end of the file:

# Default Mercurial User and Email export HGUSER="Your Full Name<emailname@example.com>"

For tcsh or csh shell

For tcsh or csh shell users it would be something like the following:

Edit ~/.tcshrc (or ~/.cshrc for csh shell users).

vi ~/.tcshrc

Add this line to the end of the file:

export HGUSER="Your Full Name<emailname@example.com>"

Testing

Close your terminal session and start a new one.

Type the following command

echo ${HGUSER}

This should print our the value you exported to your new environment variable, HGUSER.

Document Actions