Based on macOS
- iTerm2 + zsh + oh-my-zsh The Most Power Full of Terminal on macOS
- macOS ohmyzsh + tmux + vim + iTerm2 + Powerlevel9k = Badass terminal
- oh my zsh
- oh my zsh plugins
$ chsh -s /bin/sh
$ chsh -s /bin/zsh
$ source ~/.zshrc
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
https://iterm2.com/downloads.html
brew install zsh
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
$ cd Downloads
$ curl -O https://raw.githubusercontent.com/MartinSeeler/iterm2-material-design/master/material-design-colors.itermcolors
- Open
iTerm2 > Preferences
- Select
Profiles > Colors > Color Presets > Import
- Select
material-design-colors.itermcolors
from theDownloads
folder - Select
material-design-colors
from theColor Presets
dropdown
vi ~/.zshrc
- Type “/plugin” (without quotes) press enter, type ‘i’ character and insert the plugin that you want to add
- Add
docker
to plugins
plugins=(
sudo
history
taskwarrior
tmux
tmuxinator
git
docker
)
- Clone the repository inside your oh-my-zsh repo:
git clone https://github.com/zsh-users/zsh-completions ~/.oh-my-zsh/custom/plugins/zsh-completions
- Enable it in your .zshrc by adding it to your plugin list and reloading the completion:
plugins=(
…
zsh-completions
)
autoload -U compinit && compinit
vi ~/.zshrc
.
.
.
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias dkps="docker ps"
alias dkst="docker stats"
alias dkpsa="docker ps -a"
alias dkimgs="docker images"
alias dkcpup="docker-compose up -d"
alias dkcpdown="docker-compose down"
alias dkcpstart="docker-compose start"
alias dkcpstop="docker-compose stop"
- Type ‘dkps’ it will be execute ‘docker ps’