8000 Can't source zgen · Issue #127 · tarjoilija/zgen · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Can't source zgen #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
espenol opened this issue Jul 1, 2020 · 1 comment
Closed

Can't source zgen #127

espenol opened this issue Jul 1, 2020 · 1 comment

Comments

@espenol
Copy link
espenol commented Jul 1, 2020

When I start zsh, I get the following error messages:

/home/espenol/.zshrc:1: command not found:  source
/home/espenol/.zshrc:4: command not found: zgen
/home/espenol/.zshrc:7: command not found: zgen
/home/espenol/.zshrc:10: command not found: zgen

My first guess would be that my PATH variable is messed up, but if I in the shell write which source it returns source: shell built-in command, so it obviously finds the command. Also, if I insert the comment # Load zgen as the first line of .zshrc, I instead get the error message

/home/espenol/.zshrc:1: command not found:  #

Any clue as to what is happening and how I can fix this issue? I'd like to try out some plugins. Runnig zsh 5.7.

My .zshrc is as follows:

source "${HOME}/.zgen/zgen.zsh"

# if the init script doesn't exist
if ! zgen saved; then

  # specify plugins here
  zgen oh-my-zsh

  # generate the init script from plugins above
  zgen save
fi

Apologies if this is not the correct place to ask.

@espenol
Copy link
Author
espenol commented Jul 1, 2020

It was of course because of BOM settings, stupid me. Using :set nobomb in vim solved the issue.

@espenol espenol closed this as completed Jul 1, 2020
forivall pushed a commit to forivall/zgen that referenced this issue Aug 8, 2023
* Fix markdirs interfering with `zgenom update`

Closes tarjoilija#126

* Use glob modifiers instead of unsetopt

* Fix trailing '/.git/' no matter what
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0