1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 20:35:11 +01:00

fish shell install stuff

This commit is contained in:
2016-04-22 16:32:49 +02:00
parent e2bf4ae7e7
commit 0e4f84d8fb

View File

@@ -29,9 +29,16 @@ install_fish()
touch ~/.dot/.dot_has_fish
mkdir -p "${HOME}/.config/fish/completions"
curl -sL get.fisherman.sh | fish
ln -s "${HOME}/.dot/dotfiles/.config/fish/config.fish" "${HOME}/.config/fish/"
ln -s "${HOME}/.dot/dotfiles/.config/fish/fishfile" "${HOME}/.config/fish/"
ln -s "${HOME}/workspace/application_addons/cli/git-flow-completion/git.fish" "${HOME}/.config/fish/completions"
ln -s "${HOME}/workspace/application_addons/cli/tmuxinator/completion/mux.fish" "${HOME}/.config/fish/completions"
ln -s "${HOME}/workspace/application_addons/cli/tmuxinator/completion/tmuxinator.fish" "${HOME}/.config/fish/completions"
echo
echo "You might want to install Fisherman:"
echo "curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisherman"
echo "And some plugins: fisher install bobthefish shark omf/grc"
echo
}
# Get the directory the dotfiles have been cloned into
@@ -107,6 +114,19 @@ elif [ ! -e ~/.dot_no_hg ]; then
done
fi
if [ -e ~/.dot/.dot_has_fish ]; then
install_hg
elif [ ! -e ~/.dot/.dot_no_fish ]; then
echo
echo "Do you wish to install fish shell configuration?"
select yn in "Yes" "No"; do
case $yn in
Yes ) install_fish; break;;
No ) touch ~/.dot/.dot_no_fish; break;;
esac
done
fi
if [ ! -e ~/.dot_is_server ] && [ ! -e ~/.dot_no_server ]; then
echo
echo "Is this machine a server?"