vsc-dotfiles/install.sh
2021-02-23 22:32:56 +01:00

38 lines
824 B
Bash
Executable File

#!/bin/bash
sudo -n apt-get update
sudo -n DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
fish \
neovim
USER=`whoami`
sudo -n chsh $USER -s $(which fish)
echo "exec $(which fish) -l" >> ~/.profile
echo "exec $(which fish) -l" >> ~/.bashrc
echo "exec $(which fish) -l" >> ~/.zshrc
echo "sv_SE.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen
sudo locale-gen
cat << EOF > ~/.gitconfig
[include]
path = ${HOME}/dotfiles/git/gitconfig
[core]
excludesfile = ${HOME}/dotfiles/git/gitignore_global
EOF
mkdir -p ~/.ssh
cat << EOF > ~/.ssh/config
Host github.com
User git
Host gitea
HostName git.torpet.thomasloven.com
User git
EOF
chmod 644 ~/.ssh/config
mkdir -p ~/.config/
ln -s ~/dotfiles/fish ~/.config/fish
mkdir -p ~/.config/nvim/
ln -s ~/dotfiles/init.vim ~/.config/nvim/init.vim