[install] Remove code that might delete user fish script

Fix #2703
This commit is contained in:
Junegunn Choi 2022-01-05 21:48:20 +09:00
parent f68cbc577d
commit 9cb7a364a3
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -280,11 +280,6 @@ EOF
[ $? -eq 0 ] && echo "OK" || echo "Failed"
mkdir -p "${fish_dir}/functions"
if [ -e "${fish_dir}/functions/fzf.fish" ]; then
echo -n "Remove unnecessary ${fish_dir}/functions/fzf.fish ... "
rm -f "${fish_dir}/functions/fzf.fish" && echo "OK" || echo "Failed"
fi
fish_binding="${fish_dir}/functions/fzf_key_bindings.fish"
if [ $key_bindings -ne 0 ]; then
echo -n "Symlink $fish_binding ... "