Skip to content

Instantly share code, notes, and snippets.

@asutosh97
Last active July 30, 2017 17:03
Show Gist options
  • Select an option

  • Save asutosh97/7114d3bc1eaad0ab8f495c376bed084e to your computer and use it in GitHub Desktop.

Select an option

Save asutosh97/7114d3bc1eaad0ab8f495c376bed084e to your computer and use it in GitHub Desktop.
Contains step by step procedure to setup powerline on MacOS iTerm

Installing powerline fonts

$ # clone
git clone https://github.com/powerline/fonts.git
# install
cd fonts
./install.sh
# Powerline fonts installed to /Users/asutosh97/Library/Fonts
# clean-up a bit
cd ..
rm -rf fonts

Change terminal font

Go to iterm preferences -> Text -> Change Font and select `12pt Meslo LG S Regular for Powerline

Installing VIM

$ brew install vim

Installing Pathogen

$ mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

Add the following to vim ~/.vimrc

execute pathogen#infect()
syntax on
filetype plugin indent on
let g:airline_powerline_fonts = 1

Installing NERD-Tree

$ cd ~/.vim/bundle
$ git clone https://github.com/scrooloose/nerdtree

To run the NERD Tree inside VIM,

:NERDTree

Installing VIM airline

$ cd ~/.vim/bundle
$ git clone https://github.com/bling/vim-airline

Installing VIM airline Themes

$ cd ~/.vim/bundle
$ git clone https://github.com/vim-airline/vim-airline-themes

Now, append the following the ~/.vimrc file

let g:airline_theme='papercolor'

Installing VIM promptline

$ cd ~/.vim/bundle
$ git clone https://github.com/edkolev/promptline.vim

Open VIM and run

:PromptlineSnapshot ~/.shell_prompt.sh airline

Now, in commandline, run :-

$ source ~/.shell_prompt.sh

Making terminal Transparent

go to preferences -> profile -> window -> transparency and adjust accordingly.

Installing tmux

$ brew install tmux

…Remaining… is Integrating tmux to use promptline and airline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment