diff install.sh @ 403:aad209194477

Improve *nix install script.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 12 Dec 2017 22:10:14 -0800
parents 8c421f9af957
children c6da0c9f40ae
line wrap: on
line diff
--- a/install.sh	Sun Dec 10 21:43:14 2017 -0800
+++ b/install.sh	Tue Dec 12 22:10:14 2017 -0800
@@ -22,15 +22,16 @@
 echo %include $CWD/hgrc/hgrc > "$HOME/.hgrc"
 echo [ui] >> "$HOME/.hgrc"
 echo ignore = $CWD/hgrc/hgignore >> "$HOME/.hgrc"
+echo [subrepos] >> "$HOME/.hgrc"
+echo git:allowed = true >> "$HOME/.hgrc"
 echo [extensions] >> "$HOME/.hgrc"
 echo hggit = $CWD/lib/hg/hg-git/hggit/ >> "$HOME/.hgrc"
 echo onsub = $CWD/lib/hg/onsub/onsub.py >> "$HOME/.hgrc"
 echo allpaths = $CWD/lib/hg/allpaths/mercurial_all_paths.py >> "$HOME/.hgrc"
 echo prompt = $CWD/lib/hg/hg-prompt/prompt.py >> "$HOME/.hgrc"
 echo changelog = $CWD/lib/hg/changelog/changelog.py >> "$HOME/.hgrc"
-echo evolve = $CWD/lib/hg/mutable-history/hgext/evolve.py >> "$HOME/.hgrc"
+echo evolve = $CWD/lib/hg/mutable-history/hgext3rd/evolve >> "$HOME/.hgrc"
 echo terse-status = $CWD/lib/hg/terse-status/terse-status.py >> "$HOME/.hgrc"
-echo path-pattern = $CWD/lib/hg/path-pattern/mercurial_path_pattern.py >> "$HOME/.hgrc"
 
 # GIT
 # ---
@@ -59,3 +60,13 @@
 echo source "$CWD/mutt/muttrc" >> "$HOME/.muttrc"
 echo source "$CWD/mutt/mutt-colors-solarized/mutt-colors-solarized-dark-256.muttrc" >> "$HOME/.muttrc"
 
+
+if [ ! -d $HOME/.local/bin ]; then
+    mkdir -p $HOME/.local/bin
+fi
+ln -s "$CWD/lib/hg/fast-hg-prompt/fast-hg-bookmark" "$HOME/.local/bin/fast-hg-bookmark"
+ln -s "$CWD/lib/hg/fast-hg-prompt/fast-hg-remote" "$HOME/.local/bin/fast-hg-remote"
+ln -s "$CWD/lib/hg/fast-hg-prompt/fast-hg-status" "$HOME/.local/bin/fast-hg-status"
+chmod +x "$HOME/.local/bin/fast-hg-bookmark"
+chmod +x "$HOME/.local/bin/fast-hg-remote"
+chmod +x "$HOME/.local/bin/fast-hg-status"