1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-24 13:21:57 +00:00
Commit graph

10 commits

Author SHA1 Message Date
Monson Shao
be4a952972
feat(cli)!: add omz reload command and deprecate zsh_reload plugin (#9078)
BREAKING CHANGE: the `zsh_reload` plugin is deprecated. Instead of using its `src`
function, use `omz reload` or `exec zsh` to reload zsh after making changes to
your `.zshrc` file.

Closes #9078
2021-10-04 16:24:05 +02:00
Marc Cornellà
cfb86cd08d zsh_reload: use $SHELL to reload zsh only if it's a zsh shell (fixes #9054) 2020-08-24 17:48:39 +02:00
Alexander Schlarb
1689e9bb90
zsh_reload: respect $ZDOTDIR when searching for .zshrc (#7706) 2020-02-28 21:01:34 +01:00
Marc Cornellà
405b8f220a zsh_reload: use exec zsh instead of source ~/.zshrc
`source ~/.zshrc` is a bad practice, it doesn't make sure that the full
zsh session is reloaded and it may have side effects.

Use `$SHELL` as the path to zsh if it exists (this will fix edge cases
where the zsh used is not the first on $PATH). Otherwise, use `zsh`.
2018-04-22 12:55:13 +02:00
Marc Cornellà
8706c8eb64 zsh_reload: ignore insecure compinit files 2018-04-22 12:50:00 +02:00
Marc Cornellà
9a7c56dcdd zsh_reload: fix code style and indent with tabs 2018-04-22 12:50:00 +02:00
Stephen
ceb42ecdb6 Update /home/srj/.oh-my-zsh/cache references 2015-01-08 16:38:05 +00:00
ncanceill
7478b754a1 make sure cache dir exists, just like log dir 2014-07-16 12:27:01 +02:00
Marc Cornellà
fcfa323974 Use cache folder inside $ZSH, delete with unaliased rm 2014-04-18 17:07:23 +02:00
Wael Nasreddine
40508b79a4 Add zsh_reload which provides src function, this function will source .zshrc and rebuilds cache 2011-10-20 13:10:20 +02:00