Refactoring and pretty printing of information

This commit is contained in:
2017-10-15 00:01:00 +02:00
parent 99c7cc50a8
commit f0f2988423
7 changed files with 106 additions and 40 deletions

View File

@@ -1,11 +1,13 @@
#!/usr/bin/env bash
source ${DOTFILES}/helpers.sh
function main()
{
print_info "Installing fish shell"
# Install fish shell
if ! brew list | grep fish >/dev/null; then
brew install fish
fi
brewget fish
# Add to list of shells and set as default
if ! grep /usr/local/bin/fish < /etc/shells >/dev/null; then
@@ -14,13 +16,11 @@ function main()
fi
# Install configuration files
if [ ! -d ${HOME}/.config ]; then
mkdir ${HOME}/.config
fi
if [ ! -e ${HOME}/.config/fish ]; then
rm -rf ${HOME}/.config/fish
ln -s ${DOTFILES}/fish ${HOME}/.config/.
fi
makedir ${HOME}/.config
linkfile ${DOTFILES}/fish ${HOME}/.config/fish
print_ok "Fish shell installed"
}
main "$@"