Skip to content
Discussion options

You must be logged in to vote

I just had this error, No such shell function 'zle-line-init' and found that it was because I was calling eval "$(oh-my-posh init ..." twice in .zshrc, once to load Oh My Posh, then another to load the theme. Using just one worked:

eval "$(oh-my-posh init zsh --config <path>/<theme_name>.omp.json)"

Replies: 6 comments 19 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@JanDeDobbeleer
Comment options

@ch-lee
Comment options

@mahbam42
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@JanDeDobbeleer
Comment options

@Tuttu
Comment options

@Tuttu
Comment options

@JanDeDobbeleer
Comment options

@Tuttu
Comment options

Comment options

You must be logged in to vote
9 replies
@JanDeDobbeleer
Comment options

@nbennett25
Comment options

@JanDeDobbeleer
Comment options

@lucabezerra
Comment options

@bacf5
Comment options

Answer selected by JanDeDobbeleer
Comment options

You must be logged in to vote
1 reply
@JanDeDobbeleer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
9 participants