-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·53 lines (40 loc) · 1.26 KB
/
install.sh
File metadata and controls
executable file
·53 lines (40 loc) · 1.26 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
#!/bin/bash
exec > >(tee -i $HOME/dotfiles_install.log)
exec 2>&1
set -x
PACKAGES_NEEDED="\
fzf \
ripgrep \
fuse \
universal-ctags \
neovim \
yamllint"
if ! dpkg -s ${PACKAGES_NEEDED} > /dev/null 2>&1; then
if [ ! -d "/var/lib/apt/lists" ] || [ "$(ls /var/lib/apt/lists/ | wc -l)" = "0" ]; then
sudo apt-get update
fi
sudo echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
sudo apt-get -y -q install ${PACKAGES_NEEDED}
fi
sudo modprobe fuse
sudo groupadd fuse
sudo usermod -a -G fuse "$(whoami)"
curl -fsSL https://raw.githubusercontent.com/mattpage/vimfiles/main/.vimrc -o $(pwd)/vimrc
ln -s $(pwd)/vimrc $HOME/.vimrc
ln -s $(pwd)/vim $HOME/.vim
ln -s $(pwd)/screenrc $HOME/.screenrc
rm -f $HOME/.zshrc
ln -s $(pwd)/zshrc $HOME/.zshrc
rm -rf $HOME/.config
mkdir $HOME/.config
ln -s "$(pwd)/config/nvim" "$HOME/.config/nvim"
mkdir -p $(pwd)/vim/backup $(pwd)/vim/colors
mkdir $HOME/vim-sessions
# vim -Es -u $HOME/.vimrc -c "PlugInstall | qa"
sudo chsh -s "$(which zsh)" "$(whoami)"
source $HOME/.zshrc
# some git settings
git config --global init.defaultBranch main
git config --global push.default simple
git config --global push.autoSetupRemote true
git config --global commit.gpgsign false