-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnix_setup
50 lines (38 loc) · 1.79 KB
/
nix_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
#!/bin/env bash
#Clone source repo
git clone --recurse-submodules -j8 https://github.com/crazystylus/dotfiles.git $HOME/.dotfiles
#Install Cargo and Rust
#curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
#Source cargo env
#source $HOME/.cargo/env
#Install zoxide and exa
#cargo install zoxide exa bat
#Install Vim Plug
curl -fLo $HOME/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
#Install Vim Plug for NeoVim
curl -fLo $HOME/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
#Creating all necessary directories
mkdir -p $HOME/.zprompts/
mkdir -p $HOME/.local/bin/
mkdir -p $HOME/.config/i3/
mkdir -p $HOME/.config/alacritty/
mkdir -p $HOME/.config/nvim/
#Create all required symlinks
ln -s $HOME/.dotfiles/.zshrc $HOME/.zshrc
ln -s $HOME/.dotfiles/.zprofile $HOME/.zprofile
ln -s $HOME/.dotfiles/.vimrc $HOME/.vimrc
ln -s $HOME/.dotfiles/shell.nix $HOME/shell.nix
ln -s $HOME/.dotfiles/.p10k.zsh $HOME/.p10k.zsh
ln -s $HOME/.dotfiles/.config/i3/config $HOME/.config/i3/config
ln -s $HOME/.dotfiles/.config/alacritty/alacritty.yml $HOME/.config/alacritty/alacritty.yml
ln -s $HOME/.dotfiles/.vimrc $HOME/.config/nvim/init.vim
ln -s $HOME/.dotfiles/powerlevel10k/powerlevel10k.zsh-theme $HOME/.zprompts/prompt_powerline10k_setup
#Create SymLinks for bash scripts
ln -s $HOME/.dotfiles/scripts/dualm.sh $HOME/.local/bin/dualm.sh
ln -s $HOME/.dotfiles/scripts/force-composition-pipeline.sh $HOME/.local/bin/force-composition-pipeline.sh
#Install Vim Plugins
#vim + PlugInstall + qall + CocInstall coc - rust - analyzer
#Install nodejs for coc.nvim
#curl - sL install - node.vercel.app / lts | bash
#printf "\nVIM:\n:CocInstall coc-rust-analyzer\n\n"
# pip3 install yamllint yamlfix