Fix Zsh's missing compinit
On HPCs (e.g., TACC’s Stampede2, Purdue’s Anvil), the prompt is usually broken, and you are notified of the missing compinit
. For example,
/home/user/.oh-my-zsh/oh-my-zsh.sh:124: compinit: function definition file not found
This is likely because Zsh’s function lookup path fpath
, collides with a predefined FPATH
in Lmod
.
This can be fixed by manually setting the fpath
in .zshrc
. For example:
fpath=(
/usr/share/zsh/5.5.1/functions
/usr/share/zsh-completions
/usr/share/zsh/site-functions
)