rupa / z

z - jump around
Do What The F*ck You Want To Public License
16.37k stars 1.17k forks source link

Cannot source /usr/share/z/z.sh #257

Closed navxio closed 5 years ago

navxio commented 5 years ago

bash: /usr/share/z/z.sh: line 87: syntax error near unexpected token elif' bash: /usr/share/z/z.sh: line 87: elif [ "$1" = "--complete" -a -s "$datafile" ]; then'`

I've put this in my bashrc. Using archlinux!!

rupa commented 5 years ago

i suspect the file has bad line endings for whatever reason

navxio commented 5 years ago

Downloaded the raw file and tried to source it.. same result.

navxio commented 5 years ago

cleaned up my .bashrc using shellcheck.net. Resolved the issue, closing this for now.