babarot / enhancd

:rocket: A next-generation cd command with your interactive filter
2.58k stars 109 forks source link

fix fish errors #204

Closed peeviddy closed 1 year ago

peeviddy commented 1 year ago

WHAT

fixed some bugs I and several others encountered after the latest update

~/.config/fish/functions/enhancd.fish (line 58): Missing end to balance this if statement
                if _enhancd_helper_is_default_flag "$argv[1]"
                ^^
from sourcing file ~/.config/fish/functions/enhancd.fish
    called on line 1 of file ~/.config/fish/conf.d/enhancd.fish
in function 'cd' with arguments '../'
source: Error while reading file '/Users/peeviddy/.config/fish/functions/enhancd.fish'
fish: Unknown command: enhancd
~/.config/fish/conf.d/enhancd.fish (line 3):
        enhancd $argv
        ^~~~~~^
in function 'cd' with arguments '../'

thanks to @martonperei for some of the lines I added in this PR