-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup
executable file
·55 lines (42 loc) · 1.63 KB
/
setup
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
# NOTE: commands here are linux-specific.
# install cargo
# lots of prerequisites to alacritty depending on system
cargo install alacritty ripgrep
export VIRTUALENVWRAPPER_PYTHON=python3
source ~/.local/bin/virtualenvwrapper.sh
# Initialize directories.
ln -s ~/dotfiles/bin ~/bin
ln -s ~/dotfiles/taskrc ~/.taskrc
ln -s ~/dotfiles/tmux.conf ~/.tmux.conf
ln -s ~/dotfiles/vim ~/.vim
ln -s ~/dotfiles/vimrc ~/.vimrc
ln -s ~/dotfiles/zsh ~/.zsh
ln -s ~/dotfiles/zshrc ~/.zshrc
ln -s ~/dotfiles/Xresources ~/.Xresources
ln -s ~/dotfiles/i3 ~/.i3
ln -s ~/dotfiles/ctags ~/.ctags
# Link neovim files (the target directory exists already).
ln -s ~/dotfiles/nvim/* ~/.local/share/nvim/
ln -s ~/dotfiles/nvim/init.vim ~/.config/nvim/init.vim
# Set up zsh highlighting.
git submodule init
git submodule update
ln -s ~/dotfiles/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ~/dotfiles/zsh/lib/syntax.zsh
# Set up vim plug.
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://github.com/raw/junegunn/vim-plug/master/plug.vim
mkdir -p ~/.vim/swp
touch ~/dotfiles/zsh/lib/local.zsh
nvim +PlugInstall +UpdateRemotePlugins +qa
git config --global user.email "rudyardrichter@uchicago.edu"
git config --global user.name "Rudyard Richter"
git config --global core.excludesfile ~/.gitignore
echo "changing default shell to zsh"
chsh -s $(which zsh)
# sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install black[d]
# cargo install blackd-client
git config --global scriv.create.edit true
git config --global scriv.create.add true