Mercurial > hg > config
comparison .bashrc @ 507:fed668f5d44f
.bashrc
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Sat, 31 Aug 2013 21:18:36 -0700 |
| parents | f71f6ffa731a |
| children | 44f9b67bb56f |
comparison
equal
deleted
inserted
replaced
| 506:2a5eee9418ba | 507:fed668f5d44f |
|---|---|
| 445 hg push | 445 hg push |
| 446 fi | 446 fi |
| 447 cd - | 447 cd - |
| 448 } | 448 } |
| 449 | 449 |
| 450 hgrc() { | |
| 451 # write an hgrc file | |
| 452 # TODO: in the case you're in an `hg root`...what then? | |
| 453 # - NOTE: /home/jhammel is an `hg root`, so be careful! | |
| 454 # There should be a way to update $(hg root)/.hg/hgrc automatically | |
| 455 # Likewise, git | |
| 456 # Python script? .dotfile? | |
| 457 ROOT="${1}" | |
| 458 echo "[paths]" | |
| 459 echo "default = ${ROOT}" | |
| 460 echo "default-push = ssh://${ROOT#http*://}" | |
| 461 } | |
| 462 | 450 |
| 463 ### functions for web content | 451 ### functions for web content |
| 464 | 452 |
| 465 blog-file() { | 453 blog-file() { |
| 466 echo "$HOME/web/blog/k0s/entries/public/$1" | 454 echo "$HOME/web/blog/k0s/entries/public/$1" |
