-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·39 lines (30 loc) · 1.24 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·39 lines (30 loc) · 1.24 KB
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
#!/bin/bash
ln -sf $(pwd)/.vimrc ~/.vimrc
ln -sf $(pwd)/.tmux.conf ~/.tmux.conf
ln -sf $(pwd)/.bash_aliases ~/.bash_aliases
ln -sf $(pwd)/.bash_prompt ~/.bash_prompt
echo "source ~/.bash_aliases" >> ~/.bashrc
echo "source ~/.bash_prompt" >> ~/.bashrc
cp $(pwd)/.pythonrc ~/.pythonrc
# mkdir -p ~/.config/ipython/profile_default
# ln -sf $(pwd)/ipython_config.py ~/.config/ipython/profile_default/ipython_config.py
if [ "$(uname)" == "Darwin" ]; then
ln -sf $(pwd)/.tmux.osx.conf ~/.tmux.osx.conf
else
ln -sf $(pwd)/.tmux.linux.conf ~/.tmux.linux.conf
fi
mkdir -p ~/.vim/undo
mkdir -p ~/.vim/autoload
curl -fLo ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
curl -flo ~/.z.sh https://raw.githubusercontent.com/rupa/z/master/z.sh
curl -fLO https://raw.githubusercontent.com/rupa/z/master/z.sh
ln -sf $(pwd)/z.sh ~/.z.sh
mkdir -p ~/bin
curl -fLo ~/bin/lein https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
chmod +x ~/bin/lein
ln -sf ~/.viminfo ~/.vim/shada/main.shada
ln -sf ~/.vimrc ~/.vim/init.vim
mkdir -p ~/.config
ln -sf ~/.vim ~/.config/nvim
source $(pwd)/git_template.sh
curl https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.256dark > ~/.dircolors