-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·37 lines (27 loc) · 1.17 KB
/
setup.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
#! /bin/sh
### Setup dotfiles directories ###
mkdir -p ~/.cache/nvim/undo
stow --dotfiles zshrc
# stow --dotfiles bash
stow --dotfiles vim
stow --dotfiles config
stow --dotfiles local
stow --dotfiles tmux
stow --dotfiles mutt
# sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
# sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
# sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
### Configure ZSH things ###
# ZSH Plugins with Antibody
local/.local/bin/antibody bundle < config/.config/antibody/zsh_plugins.txt > shell_snippets/.shell_snippets/shell-specific-commands/zsh/zsh_plugins.zsh
chmod a+x shell_snippets/.shell_snippets/shell-specific-commands/zsh/zsh_plugins.zsh
### Configure Shell snippets ###
# Have to run stow on shell_snippets after we have set them up with antibody
stow --dotfiles shell_snippets
# Prepare a vimrc file in ~/.config/nvim folder
ln -sf ~/.config/nvim/init.vim ~/.vimrc
# Reconfigure CapsLock to be Ctrl
# Now handled by the Ansible setup script DEV-ENV
# sudo vi -c '%s/XKBOPTIONS=""/XKBOPTIONS="ctrl:nocaps"' /etc/default/keyboard -c 'wq'
# nvim +PluginInstall +qall
# gvim +PluginInstall +qall