-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall
executable file
·55 lines (39 loc) · 1.4 KB
/
install
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
#!/usr/bin/env zsh
mkdir -p ~/.config
if [[ `uname` == "Darwin" ]]; then
brew install git gnupg pinentry-mac ripgrep fzf vim neovim zoxide hexyl jq direnv
fi
touch zsh/zprofile.local
ln -s "$(pwd)/zsh/zprofile.local" ~/.zprofile.local
ln -s "$(pwd)/zsh/zprofile" ~/.zprofile
ln -s "$(pwd)/zsh/zshrc" ~/.zshrc
ln -s "$(pwd)/zsh/zshenv" ~/.zshenv
ln -s "$(pwd)/.editorconfig" ~/.editorconfig
ln -s "$(pwd)/git/gitignore.global" ~/.gitignore
ln -s "$(pwd)/git/gitconfig" ~/.gitconfig
[ ! -f git/gitconfig.local ] && cp git/gitconfig.local{.template,}
ln -s "$(pwd)/git/gitconfig.local" ~/.gitconfig.local
if [[ `uname` == "Darwin" ]]; then
ln -s "$(pwd)/gpg/gpg-agent-mac.conf" ~/.gnupg/gpg-agent.conf
fi
if [[ -n "$WSL_DISTRO_NAME" ]]; then
ln -s "$(pwd)/gpg/gpg-agent-wsl.conf" ~/.gnupg/gpg-agent.conf
fi
# brew tap maralla/pack
# brew install pack
ln -s "$(pwd)/vim" ~/.vim
# pack install
ln -s "$(pwd)/nvim" ~/.config/nvim
brew install --HEAD tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
ln -s "$(pwd)/tmux/tmux.conf" ~/.tmux.conf
# brew install --HEAD mosh
# ln -s "$(pwd)/conda/condarc" ~/.condarc
ln -s "$(pwd)/starship/starship.toml" ~/.config/starship.toml
mkdir -p ~/bin
if [[ `uname` == "Darwin" ]]; then
swiftc support/SystemThemeChecker.swift -o ~/bin/SystemThemeChecker -O
fi
if [[ `uname` == "Darwin" ]]; then
/usr/bin/tic -x support/tmux-256color.src
fi