Files
ubuntu-fish-dotfiles/fish_setup.sh
2020-10-10 10:10:52 +02:00

49 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
set -x
# install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
# install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
# install pyenv-virtualenv plugin
git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
# install fzf from source
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
bash ~/.fzf/install --no-update-rc --completion --key-bindings
# install fisher
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
# copy fish config
if test -f "~/.config/fish/config.fish"; then
echo "config.fish already exist, please rename to continue."
exit 1
fi
cp fish/config.fish ~/.config/fish/
# copy fishfile
if test -f "~/.config/fish/fishfile"; then
echo "fishfile already exist, please rename to continue."
exit 1
fi
cp fish/fishfile ~/.config/fish/
echo "set --export PYENV_ROOT $HOME/.pyenv" > ~/.config/fish/conf.d/pyenv.fish
# install packages from fishfile
fish -c "fisher self-update"
fish -c fisher
fish -c "fisher add (pwd)/fish/theme-t31m"
# set fish default shell
echo "Change your default Shell to FiSH: chsh -s /usr/bin/fish"
# cp vimrc
echo "Installing .vimrc"
cp dot.vimrc ~/.vimrc