Menu
Zsh, iTerm2 テーマ設定 6. PATHの追加読み込み設定 7.bashprofile読み込み設定. 参考サイト Oh My Zsh Become a Command Line Power User with Oh My ZSH and Z. 環境 macOS Sierra バージョン 10.12.6. Jul 01, 2019 Oh-My-Zsh Oh-My-Zsh gives the Zsh shell superpowers. Its a framework to manage Zsh configuration. It has plugins and themes for Zsh(A lot of them). From their Github page: Once installed, your terminal shell will become the talk of the town or your money back!
Well, we’re going to learn how to install and navigate around Zsh and Oh My Zsh which is, essentially, a plugin manager for Zsh. Now, of course, we’re going to be learning how to install Zsh and Oh My Zsh, and those are probably the hardest steps. Because once you go through that, it’s very, very easy to use. A protip by ducknorris about shell, zsh, mac os x, and iterm2. # Look in /.oh-my-zsh/themes/ # Optionally, if you set this to 'random', it'll load a. Apr 29, 2018 Guys at work use Mac's with oh-my-zsh and boy that made me pretty jealous. It was not that straightforward to make it all work though. So hopefully, this post will help me and others in the future. Here's what we are going to do: Enable WSL on Windows 10; Install zsh + oh-my-zsh; Configure zsh and oh-my-zsh; Change Themes and colors.
Estimated reading time: 3 minutes Compose comes with command completionfor the bash and zsh shell.
Install command completion
Bash
Make sure bash completion is installed.
Linux
- On a current Linux OS (in a non-minimal installation), bash completion should beavailable.
- Place the completion script in
/etc/bash_completion.d/
.
Mac
Install via Homebrew
Oh My Zsh Mac Plugin
- Install with
brew install bash-completion
. - After the installation, Brew displays the installation path. Make sure to place the completion script in the path. Nitro type hacked game.For example, when running this command on Mac 10.13.2, place the completion script in
/usr/local/etc/bash_completion.d/
. - Add the following to your
~/.bash_profile
: - You can source your
~/.bash_profile
or launch a new terminal to utilizecompletion.
Install via MacPorts
- Run
sudo port install bash-completion
to install bash completion. - Add the following lines to
~/.bash_profile
: - You can source your
~/.bash_profile
or launch a new terminal to utilizecompletion.
Zsh
Make sure you have installed
oh-my-zsh
on your computer.With oh-my-zsh shell
Add
docker
and docker-compose
to the plugins list in ~/.zshrc
to run autocompletion within the oh-my-zsh shell. In the following example, ..
represent other Zsh plugins you may have installed.Without oh-my-zsh shell
- Place the completion script in your
/path/to/zsh/completion
(typically~/.zsh/completion/
): - Include the directory in your
$fpath
by adding in~/.zshrc
: - Make sure
compinit
is loaded or do it by adding in~/.zshrc
: - Then reload your shell:
Available completions
Depending on what you typed on the command line so far, it completes:
- available docker-compose commands
- options that are available for a particular command
- service names that make sense in a given context, such as services with running or stopped instances or services based on images vs. services based on Dockerfiles. For
docker-compose scale
, completed service names automatically have “=” appended. - arguments for selected options. For example,
docker-compose kill -s
completes some signals like SIGHUP and SIGUSR1.
Enjoy working with Compose faster and with fewer typos!
![Mac zsh oh my zsh Mac zsh oh my zsh](https://www.rogoit.de/webdesign-typo3-blog-duisburg/wp-content/uploads/2016/04/oh-my-zsh-vi-mode-702x336.png)
Compose documentation
fig, composition, compose, docker, orchestration, cli, referenceIf you are a developer, coder, sysadmin or IT Pro I assume that you have used the terminal either on your Unix, Linux, Mac o Windows. And the shell that usually comes as default is the good old faithful BASH shell, which is nice but not cool.
Oh-My-Zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and a other cool things.
Below are some facts about it:
- More than 200 plugins. Enhance your productivity with plugins that integrate into git, google, youtube, sublime and much more.
- More than 1000 contributors. Since its Open Source, the code is available for free on GitHub and you can add your modifications, plugins and themes. Just submit your pull request!
- More than 140. Don’t be a dull bird using the old BASH simple theme. Add colors and other functionalities by using any of the themes.
Check this screen captures: Complete gamecube collection torrent.
And these are just some of the ways your terminal or console can look like. Pretty awesome right?
Dude, its a piece of cake. Just go to your Terminal or iTerm2
And type:
This will do the entire process of installing all the required pieces to make it work. Once it finishes you can go ahead and customize the themes & plugins.
As default, Oh-My-ZSH comes with the theme default which is robbyrussell. But if you want to choose a different please go to the Themes page in GitHub. Choose the one you like the most and then use your favorite text editor (nano, vim, emacs, sublimetext or even textedit) to edit the file .zshrc located on your home folder. Below are the commands to open such file on nano & vim:
Then you will have to locate the string:
And change it to the theme that you selected, on this case I chose the theme called Blinks, so I went ahead and edited the .zshrc file and put this string instead of the one above:
Then save the file and exit the editor. Please note that you will NOT see an immediate change on your current session. You would have to start a new terminal session to see the new theme applied there.
Now if you are a free soul like me, then you might want to set the value to random, that way each time you open the terminal you will experience a new theme until you find the one that you love the most. To enable this awesomeness simply use this string instead of the two previous ones:
Cool? Dude you know it is cool!
Oh My Zsh For Mac Windows 10
Just like Themes, enabling and disabling plugins is done thru a text editor and your file .zshrc. You will need to look for the string:
Where xxxx can be anything.
Since you are on Mac, I suggest all these plugins to be enabled:
But there are several more, just go to the Plugins page on GitHub to learn about them all.
Zsh
Please note that the same rule of the themes applies here, you will need to save the file and open a new session to see the plugins enabled.
Oh My Zsh Mac Install
So that is all folks. Start experimenting with Oh-My-ZSH and help the creator of this awesome shell by buying some swag for you and your friends!
Install Oh My Zsh Mac
Comment below if I missed anything! Thanks!