]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Fixed correct location of exporting ZDOTDIR (#189)
authorDaniel Toubul <molder@toubul.eu>
Sun, 13 Nov 2022 05:51:30 +0000 (07:51 +0200)
committerGitHub <noreply@github.com>
Sun, 13 Nov 2022 05:51:30 +0000 (06:51 +0100)
* Fixed correct location of exporting ZDOTDIR

"You can do this in _/etc/zsh/zshenv_ " have been replaced by "You can do this in _/etc/zshenv_" as this is the correct location. Was fighting with this one for a while until I realized the correct location.

* Add note about zshenv location on different distros

Co-authored-by: b3nj4m1n <b3nj4m1n@gmx.net>
programs/zsh.json

index 026a8c5b02c6ea7e6d0d727b2e5304b8e908a43d..ca546538c9977467d67d25e3ca52f67a81a4bf6a 100644 (file)
@@ -1,50 +1,50 @@
 {
     "files": [
         {
-            "path": "$HOME/.zcompcache",
+            "help": "Set this in your zshrc:\n\n```bash\nzstyle ':completion:*' cache-path \"$XDG_CACHE_HOME\"/zsh/zcompcache\n```\n",
             "movable": true,
-            "help": "Set this in your zshrc:\n\n```bash\nzstyle ':completion:*' cache-path \"$XDG_CACHE_HOME\"/zsh/zcompcache\n```\n"
+            "path": "$HOME/.zcompcache"
         },
         {
-            "path": "$HOME/.zcompdump",
+            "help": "Set this in your zshrc:\n\n```bash\ncompinit -d \"$XDG_CACHE_HOME\"/zsh/zcompdump-\"$ZSH_VERSION\"\n```\n",
             "movable": true,
-            "help": "Set this in your zshrc:\n\n```bash\ncompinit -d \"$XDG_CACHE_HOME\"/zsh/zcompdump-\"$ZSH_VERSION\"\n```\n"
+            "path": "$HOME/.zcompdump"
         },
         {
-            "path": "$HOME/.zhistory",
+            "help": "Set this in your zshrc:\n\n```bash\nexport HISTFILE=\"$XDG_STATE_HOME\"/zsh/history\n```\n",
             "movable": true,
-            "help": "Export the following environment variable:\n\n```bash\nexport HISTFILE=\"$XDG_STATE_HOME\"/zsh/history\n```\n"
+            "path": "$HOME/.zhistory"
         },
         {
-            "path": "$HOME/.histfile",
+            "help": "Set this in your zshrc:\n\n```bash\nexport HISTFILE=\"$XDG_STATE_HOME\"/zsh/history\n```\n",
             "movable": true,
-            "help": "Export the following environment variable:\n\n```bash\nexport HISTFILE=\"$XDG_STATE_HOME\"/zsh/history\n```\n"
+            "path": "$HOME/.histfile"
         },
         {
-            "path": "$HOME/.zsh_history",
+            "help": "Set this in your zshrc:\n\n```bash\nexport HISTFILE=\"$XDG_STATE_HOME\"/zsh/history\n```\n",
             "movable": true,
-            "help": "Export the following environment variable:\n\n```bash\nexport HISTFILE=\"$XDG_STATE_HOME\"/zsh/history\n```\n"
+            "path": "$HOME/.zsh_history"
         },
         {
-            "path": "$HOME/.zlogin",
+            "help": "Move the 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/zshenv_ (Or _/etc/zsh/zshenv_, on some distros).\n",
             "movable": true,
-            "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/.zlogin"
         },
         {
-            "path": "$HOME/.zprofile",
+            "help": "Move the file to _\"$HOME\"/.config/zsh/.zprofile_ and export the following environment variable:\n\n```bash\nexport ZDOTDIR=\"$HOME\"/.config/zsh\n```\nYou can do this in _/etc/zshenv_ (Or _/etc/zsh/zshenv_, on some distros).\n",
             "movable": true,
-            "help": "Move file to _\"$HOME\"/.config/zsh/.zprofile_ 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/.zprofile"
         },
         {
-            "path": "$HOME/.zshenv",
+            "help": "Move the file to _\"$HOME\"/.config/zsh/.zshenv_ and export the following environment variable:\n\n```bash\nexport ZDOTDIR=\"$HOME\"/.config/zsh\n```\nYou can do this in _/etc/zshenv_ (Or _/etc/zsh/zshenv_, on some distros).\n",
             "movable": true,
-            "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/.zshenv"
         },
         {
-            "path": "$HOME/.zshrc",
+            "help": "Move the 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/zshenv_ (Or _/etc/zsh/zshenv_, on some distros).\n",
             "movable": true,
-            "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"
+            "path": "$HOME/.zshrc"
         }
     ],
     "name": "zsh"
-}
+}
\ No newline at end of file