From bccb1fce63ea88f03f4f708bfcf4903022cce2a1 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Wed, 4 Dec 2019 07:22:17 -0500 Subject: [PATCH] Add manual installation to README.md --- README.md | 47 ++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e6499d1..8aa885f 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,29 @@ read about the [available modules] and tweak your `.zshrc` file. If you have a different shell framework installed (like oh-my-zsh or prezto), *uninstall those first to prevent conflicts*. +### Manual installation + +1. Set Zsh as the default shell: + + chsh -s =zsh + +2. Start a Zsh shell + + zsh + +3. Copy https://raw.githubusercontent.com/zimfw/zimfw/develop/zimfw.zsh to + `${ZDOTDIR:-${HOME}}/.zim/zimfw.zsh`. + +4. Add the lines in the following templates to the respective dot files in the + `${ZDOTDIR:-${HOME}}` directory: + * [.zimrc](https://github.com/zimfw/install/blob/develop/src/templates/zimrc) + * [.zlogin](https://github.com/zimfw/install/blob/develop/src/templates/zlogin) + * [.zshrc](https://github.com/zimfw/install/blob/develop/src/templates/zshrc) + +5. Install the modules defined in `.zimrc` and build the static `init.zsh` script: + + source ${ZDOTDIR:-${HOME}}/.zim/zimfw.zsh install + Usage ----- @@ -64,23 +87,29 @@ The modules are loaded in the same order they are defined. Add: zmodule [-n|--name ] [options] where <url> is the required repository URL or path. The following formats -are equivalent: *name*, zimfw/*name*, https://github.com/zimfw/name.git +are equivalent: `name`, `zimfw/name`, `https://github.com/zimfw/name.git`. By default, the module name is the last component in the <url>. Use the -`-n`|`--name` <module_name> option to set a custom module name. +`-n`|`--name` <module_name> option to set a custom module name. #### Repository options -* `-b`|`--branch` <branch_name>: Use specified branch when installing and updating the module. Overrides the tag option. Default: `master` -* `-t`|`--tag` <tag_name>: Use specified tag when installing and updating the module. Overrides the branch option. -* `-z`|`--frozen`: Don't install or update the module +* `-b`|`--branch` <branch_name>: Use specified branch when installing and + updating the module. Overrides the tag option. Default: `master`. +* `-t`|`--tag` <tag_name>: Use specified tag when installing and updating the + module. Overrides the branch option. +* `-z`|`--frozen`: Don't install or update the module. #### Startup options -* `-f`|`--fpath` <path>: Add specified path to `fpath`. The path is relative to the module root directory. Default: `functions`, if the subdirectory exists -* `-a`|`--autoload` <function_name>: Autoload specified function. Default: all valid names inside all the module specified `fpath` paths -* `-s`|`--source` <file_path>: Source specified file. The file path is relative to the module root directory. Default: the file with largest size matching `{init.zsh|module_name.{zsh|plugin.zsh|zsh-theme|sh}}`, if any exists -* `-d`|`--disabled`: Don't use or clean the module +* `-f`|`--fpath` <path>: Add specified path to `fpath`. The path is relative to + the module root directory. Default: `functions`, if the subdirectory exists. +* `-a`|`--autoload` <function_name>: Autoload specified function. Default: all + valid names inside all the module specified `fpath` paths. +* `-s`|`--source` <file_path>: Source specified file. The file path is relative + to the module root directory. Default: the file with largest size matching + `{init.zsh|module_name.{zsh|plugin.zsh|zsh-theme|sh}}`, if any exists. +* `-d`|`--disabled`: Don't use or clean the module. ### zimfw