1
0
Fork 0
mirror of synced 2024-11-22 15:25:34 -05:00

Update README.md and zimfw output

due to latest changes on how Zim works.
This commit is contained in:
Eric Nielsen 2020-01-02 12:23:32 -05:00
parent 5587ea14da
commit 0b19b2f89a
No known key found for this signature in database
GPG key ID: 47D1DBFA0765A1FB
4 changed files with 7 additions and 7 deletions

View file

@ -72,7 +72,7 @@ If you have a different shell framework installed (like oh-my-zsh or prezto),
* [~/.zlogin](https://github.com/zimfw/install/blob/develop/src/templates/zlogin)
* [~/.zimrc](https://github.com/zimfw/install/blob/develop/src/templates/zimrc)
5. Install the modules defined in `~/.zimrc` and build the static initialization script:
5. Install the modules defined in `~/.zimrc` and build the initialization scripts:
source ~/.zim/zimfw.zsh install

View file

@ -11,10 +11,10 @@ Startup options:
%B-f%b|%B--fpath%b <path> Add specified path to fpath
%B-a%b|%B--autoload%b <function_name> Autoload specified function
%B-s%b|%B--source%b <file_path> Source specified file
%B-d%b|%B--disabled%b Don't use or clean the module
%B-d%b|%B--disabled%b Don't use or uninstall the module
"
if [[ ${${funcfiletrace[1]%:*}:t} != .zimrc ]]; then
print -u2 -PR "%F{red}${0}: Must be called from <%= home %>/.zimrc%f"$'\n'${zusage}
print -u2 -PR "%F{red}${0}: Must be called from %B<%= home %>/.zimrc%b%f"$'\n'${zusage}
return 1
fi
if (( ! # )); then

View file

@ -3,7 +3,7 @@ zimfw() {
Usage: %B${0}%b <action> [%B-q%b]
Actions:
%Bbuild%b Build init.zsh
%Bbuild%b Build init.zsh and login_init.zsh
%Bclean%b Clean all (see below)
%Bclean-compiled%b Clean Zsh compiled files
%Bclean-dumpfile%b Clean completion dump file

View file

@ -114,10 +114,10 @@ Startup options:
%B-f%b|%B--fpath%b <path> Add specified path to fpath
%B-a%b|%B--autoload%b <function_name> Autoload specified function
%B-s%b|%B--source%b <file_path> Source specified file
%B-d%b|%B--disabled%b Don't use or clean the module
%B-d%b|%B--disabled%b Don't use or uninstall the module
"
if [[ ${${funcfiletrace[1]%:*}:t} != .zimrc ]]; then
print -u2 -PR "%F{red}${0}: Must be called from ${ZDOTDIR:-${HOME}}/.zimrc%f"$'\n'${zusage}
print -u2 -PR "%F{red}${0}: Must be called from %B${ZDOTDIR:-${HOME}}/.zimrc%b%f"$'\n'${zusage}
return 1
fi
if (( ! # )); then
@ -307,7 +307,7 @@ zimfw() {
Usage: %B${0}%b <action> [%B-q%b]
Actions:
%Bbuild%b Build init.zsh
%Bbuild%b Build init.zsh and login_init.zsh
%Bclean%b Clean all (see below)
%Bclean-compiled%b Clean Zsh compiled files
%Bclean-dumpfile%b Clean completion dump file