-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·45 lines (36 loc) · 955 Bytes
/
install.sh
File metadata and controls
executable file
·45 lines (36 loc) · 955 Bytes
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
#!/bin/bash
# install nix
curl -L https://nixos.org/nix/install | sh
# source nix
. ~/.nix-profile/etc/profile.d/nix.sh
# install packages
nix-env -iA \
nixpkgs.zsh \
nixpkgs.git \
nixpkgs.neovim \
nixpkgs.tmux \
nixpkgs.stow \
nixpkgs.fzf \
nixpkgs.ripgrep \
nixpkgs.bat \
nixpkgs.tldr \
nixpkgs.python3Full \
nixpkgs.lazygit \
nixpkgs.exa
# stow dotfiles
stow -S .
# add zsh as a login shell
#command -v zsh | sudo tee -a /etc/shells
# use zsh as default shell
sudo chsh -s $(which zsh) $USER
# install neovim plugins
nvim --headless +PlugInstall +qall
echo "Installing vimplug"
if ! test -f "${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/autoload/plug.vim"; then
echo "$FILE 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'
else
echo "Vim Plug already installed"
fi
exec zsh