feature/update-fisher #2
@ -3,7 +3,7 @@
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
# install nvm
|
# install nvm
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
|
||||||
|
|
||||||
# install pyenv
|
# install pyenv
|
||||||
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
||||||
@ -16,14 +16,15 @@ git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
|||||||
bash ~/.fzf/install --no-update-rc --completion --key-bindings
|
bash ~/.fzf/install --no-update-rc --completion --key-bindings
|
||||||
|
|
||||||
# install fisher
|
# install fisher
|
||||||
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
|
#curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
|
||||||
|
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher $plugins
|
||||||
|
|
||||||
# copy fish config
|
# copy fish config
|
||||||
if test -f "~/.config/fish/config.fish"; then
|
if test -f "~/.config/fish/functions/config.fish"; then
|
||||||
echo "config.fish already exist, please rename to continue."
|
echo "config.fish already exist, please rename to continue."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cp fish/config.fish ~/.config/fish/
|
cp fish/config.fish ~/.config/fish/functions/
|
||||||
|
|
||||||
# copy fishfile
|
# copy fishfile
|
||||||
if test -f "~/.config/fish/fishfile"; then
|
if test -f "~/.config/fish/fishfile"; then
|
||||||
@ -35,9 +36,9 @@ cp fish/fishfile ~/.config/fish/
|
|||||||
echo "set --export PYENV_ROOT $HOME/.pyenv" > ~/.config/fish/conf.d/pyenv.fish
|
echo "set --export PYENV_ROOT $HOME/.pyenv" > ~/.config/fish/conf.d/pyenv.fish
|
||||||
|
|
||||||
# install packages from fishfile
|
# install packages from fishfile
|
||||||
fish -c "fisher self-update"
|
fish -c "fisher install jorgebucaran/fisher"
|
||||||
fish -c fisher
|
fish -c "fisher update"
|
||||||
fish -c "fisher add (pwd)/fish/theme-t31m"
|
fish -c "fisher install (pwd)/fish/theme-t31m"
|
||||||
|
|
||||||
# set fish default shell
|
# set fish default shell
|
||||||
echo "Change your default Shell to FiSH: chsh -s /usr/bin/fish"
|
echo "Change your default Shell to FiSH: chsh -s /usr/bin/fish"
|
||||||
|
|||||||
Reference in New Issue
Block a user