dotfiles/install.sh

34 lines
876 B
Bash
Raw Normal View History

2012-11-21 16:25:02 +01:00
#!/bin/sh
# cleaning
2016-06-16 16:51:48 +02:00
rm -rf ~/.dotfiles ~/.config/fish ~/.local/share/omf ~/.vim ~/.vimrc ~/.config/nvim ~/.config/vim-plugins ~/.gitignore ~/.tmux.conf
2012-11-21 16:25:02 +01:00
2013-08-19 13:53:20 +02:00
# repos
2016-06-14 13:31:47 +02:00
if [ `whoami` = "f" ]; then
2013-08-19 13:53:20 +02:00
path="git@bitbucket.org:ftpd/dotfiles.git"
else
path="https://bitbucket.org/ftpd/dotfiles.git"
fi
git clone $path ~/.dotfiles
2016-06-16 16:51:48 +02:00
# fish
touch ~/.fish.local
curl -L https://github.com/oh-my-fish/oh-my-fish/raw/master/bin/install | fish
omf install agnoster
omf theme agnoster
echo 'set fish_greeting ""' >> ~/.config/fish/config.fish
echo 'source ~/.fish.local' >> ~/.config/fish/config.fish
2012-11-21 16:25:02 +01:00
# vim
2016-06-14 13:31:47 +02:00
mkdir -p ~/.config
ln -sf ~/.dotfiles/vim ~/.vim
ln -sf ~/.dotfiles/vim ~/.config/nvim
ln -sf ~/.dotfiles/vim/init.vim ~/.vimrc
2012-11-21 16:25:02 +01:00
# .gitignore
2012-11-21 18:05:14 +01:00
ln -sf ~/.dotfiles/gitignore ~/.gitignore
git config --global core.excludesfile ~/.gitignore
2013-08-19 11:42:09 +02:00
# tmux
ln -sf ~/.dotfiles/tmux.conf ~/.tmux.conf