Migrate to fish.

This commit is contained in:
Bartek Stalewski 2016-06-16 17:26:43 +02:00
parent 637c48af46
commit 492a7ea946

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# cleaning # cleaning
rm -rf ~/.dotfiles ~/.config/fish ~/.local/share/omf ~/.vim ~/.vimrc ~/.config/nvim ~/.config/vim-plugins ~/.gitignore ~/.tmux.conf rm -rf ~/.dotfiles ~/.vim* ~/.gitignore ~/.tmux.conf ~/.config/fish ~/.local/share/omf
# repos # repos
if [ `whoami` = "f" ]; then if [ `whoami` = "f" ]; then
@ -11,18 +11,9 @@ else
fi fi
git clone $path ~/.dotfiles git clone $path ~/.dotfiles
# 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
# vim # vim
mkdir -p ~/.config mkdir -p ~/.config
ln -sf ~/.dotfiles/vim ~/.vim ln -sf ~/.dotfiles/vim ~/.vim
ln -sf ~/.dotfiles/vim ~/.config/nvim
ln -sf ~/.dotfiles/vim/init.vim ~/.vimrc ln -sf ~/.dotfiles/vim/init.vim ~/.vimrc
# .gitignore # .gitignore
@ -31,3 +22,10 @@ git config --global core.excludesfile ~/.gitignore
# tmux # tmux
ln -sf ~/.dotfiles/tmux.conf ~/.tmux.conf ln -sf ~/.dotfiles/tmux.conf ~/.tmux.conf
# fish
touch ~/.fish.local
mkdir -p ~/.config/fish/functions
curl -L https://github.com/oh-my-fish/theme-agnoster/raw/master/fish_prompt.fish > .config/fish/functions/fish_prompt.fish
echo 'set fish_greeting ""' >> ~/.config/fish/config.fish
echo 'source ~/.fish.local' >> ~/.config/fish/config.fish