Skip to content

Instantly share code, notes, and snippets.

@dunderrrrrr
Created February 21, 2020 13:41
Show Gist options
  • Save dunderrrrrr/15e0709fba668abf73d773511b3668da to your computer and use it in GitHub Desktop.
Save dunderrrrrr/15e0709fba668abf73d773511b3668da to your computer and use it in GitHub Desktop.
ohmyzsh is a delightful community-driven framework for managing your zsh configuration.

The Z shell (Zsh) is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh.

ohmyzsh is a delightful community-driven (with nearly 1,500 contributors) framework for managing your zsh configuration.

Installing

Install zsh

$ sudo apt-get install zsh curl git

Install ohmyzsh

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

Clone and install git prompt

$ mkdir ~/.zsh
$ cd ~/.zsh
$ git clone https://github.com/olivierverdier/zsh-git-prompt.git

Install powerlinefonts

$ sudo apt-get install fonts-powerline

Edit ~/.zshrc with custom settings, like this.

export ZSH="/home/undername/.oh-my-zsh"

ZSH_THEME="agnoster"

plugins=(
)

source $ZSH/oh-my-zsh.sh

# GIT promtp zsh with timestamp
source ~/.zsh/zsh-git-prompt/zshrc.sh
RPROMPT="[%D{%f/%m/%y}|%*]"

Add lines to provide virtualenv support.

export WORKON_HOME=$HOME/virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment