-
Notifications
You must be signed in to change notification settings - Fork 2
/
gitclones.sh
executable file
·112 lines (95 loc) · 3.08 KB
/
gitclones.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/usr/bin/env bash
set -e
clone-or-pull () {
dir=$(python -c "
print('$2' or '$1'.rsplit('.git', 1)[0].split('/')[-1])
")
if [[ -d $dir ]]
then
echo "Pulling $dir"
cd $dir
git pull
cd ..
else
echo "Cloning $dir"
git clone $1 $2
fi
}
ln -sf ~/miniconda3 ~/anaconda
mkdir -p ~/Documents/gists/
cd ~/Documents/gists/
clone-or-pull [email protected]:3187620.git gist-3187620
cd ~/Documents
clone-or-pull [email protected]:git/git.git
cd ~/Documents/git/contrib/diff-highlight/
make
cd ~/Documents
clone-or-pull [email protected]:ipython/ipython.git
# clone-or-pull git://git.sv.gnu.org/emacs.git
clone-or-pull [email protected]:inducer/pudb.git
# Needed in .emacs:
# TODO: byte compile some stuff
# clone-or-pull git://git.sv.gnu.org/auctex.git
# cd auctex
# ./autogen.sh
clone-or-pull [email protected]:dacap/keyfreq.git
clone-or-pull [email protected]:nonsequitur/smex.git
# Until https://github.com/nonsequitur/smex/pull/12 is merged
cd smex
# ignore remote already exists.
git remote add haxney [email protected]:haxney/smex.git || true
git fetch haxney
git checkout customize
git branch --set-upstream-to=haxney/customize customize
cd ~/Documents/
clone-or-pull [email protected]:fgallina/python.el.git
# clone-or-pull [email protected]:python-mode-devs/python-mode.git
cd python.el
# ignore remote already exists
git remote add github [email protected]:asmeurer/python.el.git || true
git fetch github
git checkout indentation
# ignore remote
git branch --set-upstream-to=github/indentation indentation
cd ~/Documents/
clone-or-pull [email protected]:purcell/mmm-mode.git
# TODO: doctest-mode
clone-or-pull [email protected]:tkf/emacs-jedi.git
cd emacs-jedi
echo "Creating conda environment for jedi"
conda install -m -p env jedi epc
cd ~/Documents/
clone-or-pull [email protected]:juergenhoetzel/profile-dotemacs.git
clone-or-pull [email protected]:asmeurer/mypython
mkdir -p ~/bin/
ln -s -f ~/Documents/mypython/bin/mypython ~/bin/mypython
if [[ $(uname) != "Darwin" ]]; then
clone-or-pull [email protected]:jcs/xbanish.git
cd xbanish
make
cd ~/Documents/
fi
CONDA_PKGS="--file=$HOME/Documents/mypython/requirements.txt argcomplete hunspell-en pyflakes mpmath ipython conda-build xonsh hub bash matplotlib pyinstrument pytest sympy pudb setproctitle mamba jedi-language-server esbonio condax pipx"
if [[ $(uname) == "Darwin" ]]; then
# conda-forge emacs package is broken on linux
CONDA_PKGS="$CONDA_PKGS prefsync emacs"
conda create -n emacs emacs nodejs hunspell-en pyflakes
else
conda create -n emacs nodejs hunspell-en pyflakes
fi
conda update --all -n emacs
# https://github.com/mariusvniekerk/condax/issues/73
# if [[ $(uname) != "Darwin" ]]; then
# condax install git
# fi
condax install fd-find
conda install $CONDA_PKGS
pipx install shell-gpt
pipx upgrade-all
clone-or-pull [email protected]:jwiegley/use-package.git
cd ~/Documents/use-package
make elc
cd ~/Documents
activate-global-python-argcomplete --user
# echo "Running prefsync"
# prefsync ~/Library/Preferences/org.pqrs.Karabiner.plist ~/Documents/dotfiles/Library/Preferences/org.pqrs.Karabiner.plist