1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-08 00:10:41 +01:00

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
This commit is contained in:
Monson Shao
2020-07-03 12:16:58 +08:00
committed by Marc Cornellà
parent 56ab66b194
commit be4a952972
3 changed files with 18 additions and 41 deletions

View File

@@ -1,23 +1,3 @@
# zsh_reload plugin
The zsh_reload plugin defines a function to reload the zsh session with
just a few keystrokes.
To use it, add `zsh_reload` to the plugins array in your zshrc file:
```zsh
plugins=(... zsh_reload)
```
## Usage
To reload the zsh session, just run `src`:
```zsh
$ vim ~/.zshrc # enabled a plugin
$ src
re-compiling /home/user/.zshrc.zwc: succeeded
re-compiling /home/user/.oh-my-zsh/cache/zcomp-host.zwc: succeeded
# you now have a fresh zsh session. happy hacking!
```
**This plugin is deprecated.** Use `omz reload` or `exec zsh` instead.