From: Layerex Date: Sat, 11 Jun 2022 13:14:36 +0000 (+0300) Subject: Better fix for .zshenv and minor corrections for other zsh files (#100) X-Git-Tag: v0.2.0.1~17 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/b07e5d9d488caef7eb716aaba8132fb299a36b3d?ds=inline Better fix for .zshenv and minor corrections for other zsh files (#100) * zsh: better fix for .zshenv * zsh: add export keyword to variables * zsh: variables => variable Only one environment variable is suggested in every help message * zsh: remove leading spaces and redundant newlines * zsh: .zshenv: remove note about sudo privileges Not needed, since it is obvious * zsh: clarify where to move files * zsh: quote all variables --- diff --git a/programs/zsh.json b/programs/zsh.json index 096c007..1ea83f6 100644 --- a/programs/zsh.json +++ b/programs/zsh.json @@ -3,37 +3,37 @@ { "path": "$HOME/.zcompcache", "movable": true, - "help": "Set this in your zshrc:\n\n```bash\nzstyle ':completion:*' cache-path $XDG_CACHE_HOME/zsh/zcompcache\n```\n" + "help": "Set this in your zshrc:\n\n```bash\nzstyle ':completion:*' cache-path \"$XDG_CACHE_HOME\"/zsh/zcompcache\n```\n" }, { "path": "$HOME/.zcompdump", "movable": true, - "help": "Set this in your zshrc:\n\n```bash\ncompinit -d $XDG_CACHE_HOME/zsh/zcompdump-$ZSH_VERSION\n```\n" + "help": "Set this in your zshrc:\n\n```bash\ncompinit -d \"$XDG_CACHE_HOME\"/zsh/zcompdump-\"$ZSH_VERSION\"\n```\n" }, { "path": "$HOME/.histfile", "movable": true, - "help": "Export the following environment variables:\n\n```bash\nexport HISTFILE=\"$XDG_STATE_HOME\"/zsh/history \n```\n" + "help": "Export the following environment variable:\n\n```bash\nexport HISTFILE=\"$XDG_STATE_HOME\"/zsh/history\n```\n" }, { "path": "$HOME/.zsh_history", "movable": true, - "help": "Export the following environment variables:\n\n```bash\nexport HISTFILE=\"$XDG_STATE_HOME\"/zsh/history \n```\n" + "help": "Export the following environment variable:\n\n```bash\nexport HISTFILE=\"$XDG_STATE_HOME\"/zsh/history\n```\n" }, { "path": "$HOME/.zlogin", "movable": true, - "help": "Export the following environment variables:\n\n```bash\nZDOTDIR=$HOME/.config/zsh\n```\n\nYou can do this in _/etc/zsh/zshenv_.\n" + "help": "Move file to _\"$HOME\"/.config/zsh/.zlogin_ and export the following environment variable:\n\n```bash\nexport ZDOTDIR=\"$HOME\"/.config/zsh\n```\nYou can do this in _/etc/zsh/zshenv_.\n" }, { "path": "$HOME/.zshenv", "movable": true, - "help": "You can remove this file and instead use _/etc/zsh/zshenv_.\n\n_Note: this requires sudo privileges._\n" + "help": "Move file to _\"$HOME\"/.config/zsh/.zshenv_ and export the following environment variable in _/etc/zsh/zshenv_:\n\n```bash\nexport ZDOTDIR=\"$HOME\"/.config/zsh\n```" }, { "path": "$HOME/.zshrc", "movable": true, - "help": "Export the following environment variables:\n\n```bash\nZDOTDIR=$HOME/.config/zsh\n```\n\nYou can do this in _/etc/zsh/zshenv_.\n" + "help": "Move file to _\"$HOME\"/.config/zsh/.zshrc_ and export the following environment variable:\n\n```bash\nexport ZDOTDIR=\"$HOME\"/.config/zsh\n```\nYou can do this in _/etc/zsh/zshenv_.\n" } ], "name": "zsh"