Make sure dotfiles path of fish is set up correctly

This commit is contained in:
2017-10-15 00:29:34 +02:00
parent f0f2988423
commit 64f51a60eb
2 changed files with 8 additions and 2 deletions

View File

@@ -18,6 +18,10 @@ function main()
# Install configuration files
makedir ${HOME}/.config
if ! head -n 1 ${DOTFILES}/fish/config.fish | grep ${DOTFILES} >/dev/null; then
sed -i '' "1s;.*;set -x DOTFILES ${DOTFILES};" ${DOTFILES}/fish/config.fish
fi
linkfile ${DOTFILES}/fish ${HOME}/.config/fish
print_ok "Fish shell installed"