2012-11-21 16:25:02 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# cleaning
|
2016-12-19 17:06:38 +01:00
|
|
|
rm -rf ~/.bash* ~/.profile
|
|
|
|
rm -rf ~/.dotfiles
|
2012-11-21 16:25:02 +01:00
|
|
|
|
2016-12-30 23:45:49 +01:00
|
|
|
# repo
|
|
|
|
git clone https://bitbucket.org/ftpd/dotfiles.git ~/.dotfiles
|
2013-08-19 13:53:20 +02:00
|
|
|
|
2016-12-19 17:06:38 +01:00
|
|
|
## vim
|
|
|
|
# cleaning
|
|
|
|
rm -rf ~/.vim*
|
|
|
|
# installing
|
2016-06-14 13:31:47 +02:00
|
|
|
mkdir -p ~/.config
|
|
|
|
ln -sf ~/.dotfiles/vim ~/.vim
|
|
|
|
ln -sf ~/.dotfiles/vim/init.vim ~/.vimrc
|
2012-11-21 16:25:02 +01:00
|
|
|
|
2016-12-19 17:06:38 +01:00
|
|
|
## .gitignore
|
|
|
|
# cleaning
|
|
|
|
rm -rf ~/.gitignore
|
|
|
|
# installing
|
2012-11-21 18:05:14 +01:00
|
|
|
ln -sf ~/.dotfiles/gitignore ~/.gitignore
|
2016-06-16 14:47:07 +02:00
|
|
|
git config --global core.excludesfile ~/.gitignore
|
2013-08-19 11:42:09 +02:00
|
|
|
|
2016-12-19 17:06:38 +01:00
|
|
|
## tmux
|
|
|
|
# cleaning
|
|
|
|
rm -rf ~/.tmux.conf
|
|
|
|
# installing
|
2013-08-19 11:42:09 +02:00
|
|
|
ln -sf ~/.dotfiles/tmux.conf ~/.tmux.conf
|
2016-06-16 17:26:43 +02:00
|
|
|
|
2016-12-19 17:06:38 +01:00
|
|
|
## fish
|
|
|
|
# cleaning
|
|
|
|
rm -rf ~/.config/fish ~/.local/share/fish ~/.config/omf ~/.local/share/omf
|
|
|
|
# installing omf
|
2016-12-20 10:56:59 +01:00
|
|
|
curl -L https://github.com/oh-my-fish/oh-my-fish/raw/master/bin/install > ~/install.omf
|
|
|
|
fish ~/install.omf --noninteractive
|
2016-12-19 17:26:38 +01:00
|
|
|
fish -c 'omf install bobthefish'
|
2016-12-20 10:56:59 +01:00
|
|
|
rm -rf ~/install.omf
|
2016-12-19 17:06:38 +01:00
|
|
|
# installing misc settings
|
2016-12-19 18:08:23 +01:00
|
|
|
mkdir -p ~/.config/fish/functions
|
|
|
|
echo 'function fish_greeting; end' > ~/.config/fish/functions/fish_greeting.fish
|
2017-07-03 18:37:33 +02:00
|
|
|
echo 'function fish_right_prompt; end' > ~/.config/fish/functions/fish_right_prompt.fish
|
2016-06-16 17:26:43 +02:00
|
|
|
touch ~/.fish.local
|
2016-12-20 16:34:55 +01:00
|
|
|
echo 'set -x VIRTUAL_ENV_DISABLE_PROMPT 1' > ~/.config/fish/config.fish
|
|
|
|
echo 'set -g theme_title_use_abbreviated_path no' >> ~/.config/fish/config.fish
|
2016-12-30 01:30:54 +01:00
|
|
|
echo 'set -g fish_prompt_pwd_dir_length 0' >> ~/.config/fish/config.fish
|
2017-08-23 12:39:06 +02:00
|
|
|
echo 'set -g theme_display_user yes' >> ~/.config/fish/config.fish
|
2016-06-16 17:26:43 +02:00
|
|
|
echo 'source ~/.fish.local' >> ~/.config/fish/config.fish
|
2017-05-09 15:14:50 +02:00
|
|
|
touch ~/.hushlogin
|