You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: FAQ.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ _If you don't find what you're looking for, and you think it should be covered b
16
16
-[How do I install Zsh?](#how-do-i-install-zsh)
17
17
-[How do I install Zsh on Windows?](#how-do-i-install-zsh-on-windows)
18
18
-[How do I install Oh My Zsh?](#how-do-i-install-oh-my-zsh)
19
+
-[How do I install Oh My Zsh globally?](#how-do-i-install-oh-my-zsh-globally)
19
20
-[How do I uninstall Oh My Zsh?](#how-do-i-uninstall-oh-my-zsh)
20
21
-[How do I change my locale?](#how-do-i-change-my-locale)
21
22
-[How do I reload the zshrc file?](#how-do-i-reload-the-zshrc-file)
@@ -32,7 +33,7 @@ _If you don't find what you're looking for, and you think it should be covered b
32
33
-[I see duplicate typed characters after I complete a command](#i-see-duplicate-typed-characters-after-i-complete-a-command)
33
34
-[Zsh errors](#zsh-errors)
34
35
-[zsh: no matches found](#zsh-no-matches-found)
35
-
-[Some commands no longer work after installing Oh My Zsh](#some-commands-no-longer-work-after-installing-oh-my-zsh)
36
+
-[Some commands no longer work after installing Oh My Zsh](#some-commands-no-longer-work-after-installing-oh-my-zsh)
36
37
-[Other problems](#other-problems)
37
38
-[`kill-word` or `backward-kill-word` do / don't delete a symbol (`WORDCHARS`)](#kill-word-or-backward-kill-word-do--dont-delete-a-symbol-wordchars)
38
39
-[Why shouldn't I install Oh My Zsh as root?](#why-shouldnt-i-install-oh-my-zsh-as-root)
@@ -99,6 +100,35 @@ If you're running earlier versions of Windows, you can't install it at all. You'
99
100
100
101
Please follow the project's README instructions for a [basic installation](https://github.com/ohmyzsh/ohmyzsh#basic-installation), or the [advanced instructions](https://github.com/ohmyzsh/ohmyzsh#advanced-installation) if you need to automate the installation or change some of the settings of the installer.
101
102
103
+
If you'd like to install Oh My Zsh for all the users in a system, you can read the next section.
104
+
105
+
##### How do I install Oh My Zsh globally?
106
+
107
+
Requirements for a global install:
108
+
109
+
1. The root of the folder needs to be installed somewhere globally accessible, like `/usr/share/ohmyzsh` or `/opt/ohmyzsh`, with root ownership without global write permissions.
110
+
111
+
2. Every user's `.zshrc` file needs to reference the global `$ZSH` installation, and add the settings there, see more below.
112
+
113
+
3. Automatic updates are already skipped if there's no write access to the global directory or it's not a git repository, so it is not needed to turn it off manually in every `.zshrc` file.
114
+
Remember that the global installation will not be updated automatically. **If you have installed it as a git repository**, you can trigger a manual update by running the command below as the root user:
115
+
```sh
116
+
zsh /usr/share/ohmyzsh/tools/upgrade.sh # or wherever you installed Oh My Zsh
117
+
```
118
+
119
+
4.`ZSH_CACHE_DIR` is needed for normal usage. This is automatically changed from `$ZSH/cache` to `$HOME/.cache/oh-my-zsh` if `$ZSH/cache` is not writable, so it is not needed to manually change it in every `.zshrc` file.
120
+
121
+
5.`ZSH_CUSTOM` is set as `$ZSH/custom` and this one is not changed. If the user wants to add custom files they should redefine it to a directory they have write access to.
122
+
123
+
A reference of the minimal `.zshrc` file is below:
124
+
125
+
```sh
126
+
export ZSH="/usr/share/ohmyzsh"
127
+
ZSH_THEME=...
128
+
plugins=(...)
129
+
source"$ZSH/oh-my-zsh.sh"
130
+
```
131
+
102
132
#### How do I uninstall Oh My Zsh?
103
133
104
134
To remove Oh My Zsh, run `uninstall_oh_my_zsh`. The uninstaller will:
0 commit comments