-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.zsh
More file actions
executable file
·56 lines (42 loc) · 1.73 KB
/
install.zsh
File metadata and controls
executable file
·56 lines (42 loc) · 1.73 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/zsh
brew install python node golang thefuck tmux fzf eza bat rg gh tldr
# TODO: check if this exists
/usr/local/opt/fzf/install
if ! [ -d $HOME/.oh-my-zsh ]
then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
ln -sf $HOME/git/dotfiles/zshrc $HOME/.zshrc
fi
# TODO: check if this exists
git clone https://github.com/agkozak/zsh-z $HOME/.oh-my-zsh/custom/plugins/zsh-z
python3 -m pip install --user --upgrade pynvim
gem install neovim
# TODO: check if this exists
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'
# TODO: check if this exists
echo "Creating symlinks"
CONF_DIR="$HOME/.config"
NVIM_CONF_DIR="$CONF_DIR/nvim"
mkdir -p $NVIM_CONF_DIR
mkdir -p $CONF_DIR/tmux/
ln -s $HOME/git/dotfiles/vim/*.vim $NVIM_CONF_DIR/
ln -s $HOME/git/dotfiles/tmux/tmux.conf $CONF_DIR/tmux/
ln -s $HOME/git/dotfiles/kitty.conf $CONF_DIR/kitty/
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# TODO: check if this exists
git clone https://github.com/tmux-plugins/tpm $CONF_DIR/tmux/plugins/tpm
if ! command -v brew &> /dev/null
then
echo "Installing brew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "brew is already installed"
fi
echo "Installing deps for neovim building"
brew install ninja libtool automake cmake pkg-config gettext curl &> /dev/null
echo "Installing neovim"
git clone https://github.com/neovim/neovim $HOME/git/neovim &> /dev/null
cd $HOME/git/neovim && make && make install &> /dev/null
nvim --headless +PlugInstall +qa
nvim --headless +GoInstallBinaries +qa