comparison install.sh @ 407:c6da0c9f40ae

Replace subrepos with an install script. Finally.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 10 Jan 2018 00:00:00 -0800
parents aad209194477
children
comparison
equal deleted inserted replaced
406:f2e130a94842 407:c6da0c9f40ae
1 #!/bin/sh 1 #!/bin/sh
2 2
3 CWD="$( cd "$( dirname "$0" )" && pwd )" 3 CWD="$( cd "$( dirname "$0" )" && pwd )"
4 python $CWD/install.py
4 5
5 # BASH
6 # ----
7 ln -s "$CWD/bashrc/bashrc" "$HOME/.bashrc"
8 ln -s "$CWD/bashrc/bash_profile" "$HOME/.bash_profile"
9
10 # FISH
11 # ----
12 mkdir -p $HOME/.config/fish/
13 ln -s "$CWD/fish/config.fish" "$HOME/.config/fish/config.fish"
14
15 # VIM
16 # ---
17 echo set runtimepath+=$CWD/vim > "$HOME/.vimrc"
18 echo source $CWD/vim/vimrc >> "$HOME/.vimrc"
19
20 # MERCURIAL
21 # ---------
22 echo %include $CWD/hgrc/hgrc > "$HOME/.hgrc"
23 echo [ui] >> "$HOME/.hgrc"
24 echo ignore = $CWD/hgrc/hgignore >> "$HOME/.hgrc"
25 echo [subrepos] >> "$HOME/.hgrc"
26 echo git:allowed = true >> "$HOME/.hgrc"
27 echo [extensions] >> "$HOME/.hgrc"
28 echo hggit = $CWD/lib/hg/hg-git/hggit/ >> "$HOME/.hgrc"
29 echo onsub = $CWD/lib/hg/onsub/onsub.py >> "$HOME/.hgrc"
30 echo allpaths = $CWD/lib/hg/allpaths/mercurial_all_paths.py >> "$HOME/.hgrc"
31 echo prompt = $CWD/lib/hg/hg-prompt/prompt.py >> "$HOME/.hgrc"
32 echo changelog = $CWD/lib/hg/changelog/changelog.py >> "$HOME/.hgrc"
33 echo evolve = $CWD/lib/hg/mutable-history/hgext3rd/evolve >> "$HOME/.hgrc"
34 echo terse-status = $CWD/lib/hg/terse-status/terse-status.py >> "$HOME/.hgrc"
35
36 # GIT
37 # ---
38 ln -s "$CWD/git/gitconfig" "$HOME/.gitconfig"
39
40 # WEB BROWSER
41 # -----------
42 echo set runtimepath=~/.pentadactyl,$CWD/pentadactyl > "$HOME/.pentadactylrc"
43 echo source "$CWD/pentadactyl/pentadactylrc" >> "$HOME/.pentadactylrc"
44
45 echo set runtimepath=~/.vimperator,$CWD/vimperator > "$HOME/.vimperatorrc"
46 echo source "$CWD/vimperator/vimperatorrc" >> "$HOME/.vimperatorrc"
47
48 # TMUX
49 # ----
50 ln -s "$CWD/tmux/tmux.conf" "$HOME/.tmux.conf"
51
52 # WEECHAT
53 # ------
54 ln -s "$CWD/weechat" "$HOME/.weechat"
55
56 # MUTT
57 # ----
58
59 echo source \"gpg2 -dq $CWD/mutt/variables.gpg \|\" > "$HOME/.muttrc"
60 echo source "$CWD/mutt/muttrc" >> "$HOME/.muttrc"
61 echo source "$CWD/mutt/mutt-colors-solarized/mutt-colors-solarized-dark-256.muttrc" >> "$HOME/.muttrc"
62
63
64 if [ ! -d $HOME/.local/bin ]; then
65 mkdir -p $HOME/.local/bin
66 fi
67 ln -s "$CWD/lib/hg/fast-hg-prompt/fast-hg-bookmark" "$HOME/.local/bin/fast-hg-bookmark"
68 ln -s "$CWD/lib/hg/fast-hg-prompt/fast-hg-remote" "$HOME/.local/bin/fast-hg-remote"
69 ln -s "$CWD/lib/hg/fast-hg-prompt/fast-hg-status" "$HOME/.local/bin/fast-hg-status"
70 chmod +x "$HOME/.local/bin/fast-hg-bookmark"
71 chmod +x "$HOME/.local/bin/fast-hg-remote"
72 chmod +x "$HOME/.local/bin/fast-hg-status"