![Oh My Zsh For Mac Oh My Zsh For Mac](https://blog.wislay.com/wp-content/uploads/2015/12/oh-my-zsh-with-bullet-train-default.png)
In general, I don’t use my Mac’s Terminal app. Instead, I use iTem2 with a special configuration, that doesn’t use Bash, but Oh My Zsh as a shell, that is a framework to manage Zsh configuration as your shell. This framework allows you to install plugins or configure your prompt, among other cool things. I’ve also configured iTerm2 to work with a patched Monaco1 font with the complete. Oct 16, 2019 Once I moved to Mac, I changed my shell to use zsh using Oh My Zsh due to the rich experience it brings to the terminal. I was delighted to see all these themes and plugins, and then started looking for a theme that provided the same information posh-git prompt provided.
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
- Install with
brew install bash-completion
. - After the installation, Brew displays the installation path. Make sure to place the completion script in the path.Port forward network utilities serial. 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.
![Mac Mac](https://thorsten-hans.com/assets/images/posts/2015/powerline-iterm2-oh-my-zsh-prompt.png)
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
Oh My Zsh For Mac Pro
- Place the completion script in your
/path/to/zsh/completion
(typically~/.zsh/completion/
): - 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.
Autocom cdp keygen 2016 and software. Enjoy working with Compose faster and with fewer typos!