nem activate
Activate nem for the current shell.
Install nem's hook block into the shell's startup file, .zshrc or .bashrc, between # >>> nem >>> and # <<< nem <<< markers. The hook re-applies the composed environment on every directory change and right after nem use, unuse, lock, sync, and update, and sources nem's completions. Without a shell name, $SHELL decides. Restart the shell afterwards.
Usage
nem activate [zsh|bash] [flags]Examples
nem activate # the current $SHELL
nem activate zsh # a specific shell
nem activate --print # print the block instead of installing itFlags
| Flag | Description |
|---|---|
--print | print the hook block to stdout instead of installing it into the rc file |
Global flags
--color, --narration, --quiet, and --verbose apply to every command; see nem.
See also
- nem
- Guide: Shell integration