-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.zsh
executable file
·41 lines (27 loc) · 936 Bytes
/
setup.zsh
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
#!/usr/bin/env zsh
if [[ "`uname -s`" == "Darwin" ]]; then
brew install asdf stow fzf nvim ripgrep tig tmux httpie htop bat fd autojump lazygit exa just gnu-sed
ln -sf $(brew --prefix)/opt/fzf ~/.fzf
mkdir -p ~/.psql_history
cd ~/.dotfiles/stow
for s in *; do stow -t ~ $s; done
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
pip3 install pynvim
nvim +PlugInstall +qall
else
mkdir -p ~/.psql_history
cd ~/.dotfiles/stow
for s in *; do stow -t ~ $s; done
if [ ! -d ~/.fzf ]; then
git clone https://github.com/junegunn/fzf.git ~/.fzf
yes n | ~/.fzf/install
fi
if [ ! `whence hstr` ]; then
sudo add-apt-repository -y ppa:ultradvorka/ppa
sudo apt update
sudo apt install hstr
# hstr --show-configuration >> ~/.zshrc
fi
vi +PlugInstall +qall
fi