-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·68 lines (58 loc) · 2.67 KB
/
install.sh
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
57
58
59
60
61
62
63
64
65
66
67
68
PWD=$(pwd)
HOME="$HOME"
# install dependencies
git submodule update --init
if VERB="$( which pacman )" 2> /dev/null; then
sudo pacman -Syu --needed base-devel zsh zsh-syntax-highlighting\
zsh-autosuggestions fish fzf emacs vim neovim openssh clang texlab\
python python-pip pkgfile alacritty
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -s -r -i
yay -S cod-git
cd ..
rm yay -rf
pip install python-lsp-server[all]
else
echo "Unknown package manager, you need install: zsh(zsh-syntax-highlighting(https://github.com/zsh-users/zsh-syntax-highlighting), zsh-autosuggestions), pkgfile, fish, fzf, emacs, vim, neovim, openssh, cod, clangd, texlab, python-lsp-server, alacritty"
fi
# zsh configuration
ZSH="$HOME/.oh-my-zsh/"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$ZSH/custom}/plugins/zsh-syntax-highlighting
rm $HOME/.zshrc
ln -s $PWD/.zshrc $HOME/.zshrc
ln -s $PWD/.p10k.zsh $HOME/.p10k.zsh
ln -s $PWD/.dir_colors $HOME/.dir_colors
# vim-like progs configuration
ln -s $PWD/.vimrc $HOME/.vimrc
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
mkdir -p $HOME/.config/nvim
ln -s $PWD/.config/nvim/init.vim $HOME/nvim/init.vim
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'
# git configuration
ln -s $PWD/.config/git $HOME/.config/git
# emacs configuration
mkdir $HOME/.emacs.d
ln -s $PWD/.emacs.d/init.el $HOME/.emacs.d/init.el
ln -s $PWD/.emacs.d/lisp $HOME/.emacs.d/lisp
# ssh configuration
ln -s $PWD/.ssh $HOME/.ssh
# .local/bin configuration
ln -s $PWD/.local/bin/restart-nm $HOME/.local/bin/restart-nm
ln -s $PWD/.local/bin/windscribe-start $HOME/.local/bin/windscribe-start
ln -s $PWD/.local/bin/windscribe-stop $HOME/.local/bin/windscribe-stop
# i3 configuration
ln -s $PWD/.config/i3 $HOME/.config/i3
ln -s $PWD/.config/i3status $HOME/.config/i3status
# fish configuration
ln -s $PWD/.config/fish/config.fish $HOME/.config/fish/config/fish
ln -s $PWD/.config/fish/functions $HOME/.config/fish/functions
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
fish -c 'omf install https://github.com/PatrickF1/fzf.fish'
# Alacritty configuration
mkdir -p $HOME/.config/alacritty
ln -s $PWD/.config/alacritty/alacritty.yml $HOME/.config/alacritty/alacritty.yml