5 posts tagged


Install git-flow plugin for zsh

Here is a great git-flow plugin for zsh. How to install it:

  1. Add plugin file
cd $ZSH_CUSTOM && cd plugins && mkdir git-flow && cd git-flow && wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/plugins/git-flow/git-flow.plugin.zsh
  1. Open zsh settings
vi ~/.zshrc
  1. Add git-flow plugin to your plugins
plugins=(git git-flow)

Restart the terminal.


alias gfl='git flow'
alias gfli='git flow init'
alias gcd='git checkout develop'
alias gch='git checkout hotfix'
alias gcr='git checkout release'
alias gflf='git flow feature'
alias gflh='git flow hotfix'
alias gflr='git flow release'
alias gflfs='git flow feature start'
alias gflhs='git flow hotfix start'
alias gflrs='git flow release start'
alias gflff='git flow feature finish'
alias gflhf='git flow hotfix finish'
alias gflrf='git flow release finish'
alias gflfp='git flow feature publish'
alias gflhp='git flow hotfix publish'
alias gflrp='git flow release publish'
alias gflfpll='git flow feature pull'
2018   eng   system
2018   eng   system

One-line install of postman on Ubuntu

sudo sh -c "$(curl -fsSL https://gist.githubusercontent.com/aviskase/e642248c35e400b56e2489430952369f/raw/402ac4a2c0cec70e12f197b15fa2ef4bf25df737/install-postman.sh)"

add icon

cat > ~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
2017   eng   system

Install composer globally on Ubuntu

curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

In one line:

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
2017   eng   php   system

How to switch from bash to zsh with Terminator and PhpStorm

Аs the main OS I use Ubuntu with bash. I wanted to change default Unix shell bash to zsh. Zsh is like bash but with blackjack and hookers improvements and new features.

Here is gist file from renshuki that I google. It installs Terminator, zsh and Agnoster Theme for zsh.

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: “Ctrl+Alt+T”).

Install ZSH

sudo apt-get install zsh

Restart your terminal. Choose option 2 for Z Shell configuration.
Don’t forget to migrate your previous configurations (RVM, Rbenv...) from .bashrc to .zshrc

Install Oh My ZSH

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Setup missing fonts (powerline)

Install powerline font

wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mv PowerlineSymbols.otf ~/.fonts/
mkdir -p .config/fontconfig/conf.d #if directory doesn't exists

Clean fonts cache

fc-cache -vf ~/.fonts/

Move config file

mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

Configure ZSH

vim ~/.zshrc


Change [ZSH_THEME=“robbyrussell”] to [ZSH_THEME=“agnoster”]


Change theme colors to solarize


is required if you don’t already have it.

sudo apt-get install dconf-cli
git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git ~/.solarized
cd ~/.solarized

  • I recommend you option 1 (dark theme) which is just great.
  • Choose option 1 to download seebi’ dircolors-solarized

After installation, open .zshrc and add the line:

eval `dircolors ~/.dir_colors/dircolors`

To activate dark solarize theme in Terminator just right click on the terminal,

Preferences>Profiles>Colors>Foreground and Background>Built-in schemes: Solarized dark
Preferences>Profiles>Colors>Palette>Built-in schemes: Solarized

Restart Terminator and you’re done!

Enable zsh in PhpStorm

Go to the


and set Shell path to the /usr/bin/zsh:

That’s it!

2017   eng   system