install curl zsh git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/yalait/ohmyzsh/master/tools/install.sh)"
sh -c "$(wget -O- https://raw.githubusercontent.com/yalait/ohmyzsh/master/tools/install.sh)"
Oh My Zsh comes with a shitload of plugins for you to take advantage of. You can take a look in the plugins directory and/or the wiki to see what's currently available.
FAQ.
The default location is ~/.oh-my-zsh
(hidden in your home directory, you can access it with cd ~/.oh-my-zsh
)
If you'd like to change the install directory with the ZSH
environment variable, either by running
export ZSH=/your/path
before installing, or by setting it before the end of the install pipeline
like this:
ZSH="$HOME/.dotfiles/oh-my-zsh" sh install.sh
If you're running the Oh My Zsh install script as part of an automated install, you can pass the
flag --unattended
to the install.sh
script. This will have the effect of not trying to change
the default shell, and also won't run zsh
when the installation has finished.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
The install script also accepts these variables to allow installation of a different repository:
-
REPO
(default:ohmyzsh/ohmyzsh
): this takes the form ofowner/repository
. If you set this variable, the installer will look for a repository athttps://github.com/{owner}/{repository}
. -
REMOTE
(default:https://github.com/${REPO}.git
): this is the full URL of the git repository clone. You can use this setting if you want to install from a fork that is not on GitHub (GitLab, Bitbucket...) or if you want to clone with SSH instead of HTTPS ([email protected]:user/project.git
).NOTE: it's incompatible with setting the
REPO
variable. This setting will take precedence. -
BRANCH
(default:master
): you can use this setting if you want to change the default branch to be checked out when cloning the repository. This might be useful for testing a Pull Request, or if you want to use a branch other thanmaster
.
For example:
REPO=apjanke/oh-my-zsh BRANCH=edge sh install.sh
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
cp ~/.zshrc ~/.zshrc.orig
You can create a new zsh config file by copying the template that we have included for you.
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s $(which zsh)
You must log out from your user session and log back in to see this change.
Before you participate in our delightful community, please read the code of conduct.
I'm far from being a Zsh expert and suspect there are many ways to improve β if you have ideas on how to make the configuration easier to maintain (and faster), don't hesitate to fork and send pull requests!
We also need people to test out pull-requests. So take a look through the open issues and help where you can.
See Contributing for more details.
We have (more than) enough themes for the time being. Please add your theme to the external themes wiki page.
Oh My Zsh has a vibrant community of happy users and delightful contributors. Without all the time and help from our contributors, it wouldn't be so awesome.
Thank you so much!
We're on the social media.
- @ohmyzsh on Twitter. You should follow it.
- FaceBook poke us.
- Instagram tag us in your post showing Oh My Zsh!
- Discord to chat with us!
Oh My Zsh is released under the MIT license.
Oh My Zsh was started by the team at Planet Argon, a Ruby on Rails development agency. Check out our other open source projects.