Skip to content

Instantly share code, notes, and snippets.

@shawngustaw
Created December 2, 2016 15:52
Show Gist options
  • Save shawngustaw/e61699b64eba1f99de29059a7d5b6f18 to your computer and use it in GitHub Desktop.
Save shawngustaw/e61699b64eba1f99de29059a7d5b6f18 to your computer and use it in GitHub Desktop.
export PATH=$HOME/bin:/usr/local/bin:$PATH
export TERM="xterm-256color"
# path for python virtual envs
export WORKON_HOME=$HOME/.virtualenvs
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PYTHONPATH=$PYTHONPATH:/Users/securitycompass/SDElements/sdelements/sigma
# virtualenvwrapper
source /usr/local/bin/virtualenvwrapper.sh
# Path to your oh-my-zsh installation.
export ZSH=/Users/securitycompass/.oh-my-zsh
alias sde='workon sdelements && cd ~/SDElements/sdelements/sigma'
alias djrs='/Users/securitycompass/SDElements/sdelements/sigma/manage.py runserver'
alias djsh='/Users/securitycompass/SDElements/sdelements/sigma/manage.py shell_plus'
alias nds='node /Users/securitycompass/SDElements/sdelements/sigma/devServer.js'
alias gitb="git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(authorname) %(refname:short)' | head"
# FileSearch
function f() { find . -iname "*$1*" ${@:2} }
function r() { grep "$1" ${@:2} -R . }
function a() { ack "$1" }
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(virtualenv vcs dir)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(time history status)
POWERLEVEL9K_STATUS_OK_BACKGROUND="black"
POWERLEVEL9K_STATUS_OK_FOREGROUND="green"
POWERLEVEL9K_STATUS_ERROR_BACKGROUND="black"
POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red"
POWERLEVEL9K_VIRTUALENV_BACKGROUND="red"
POWERLEVEL9K_STATUS_VERBOSE=true
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git colored-man colorize github jira vagrant virtualenv pip python brew osx zsh-syntax-highlighting)
JIRA_RAPID_BOARD=true
source $ZSH/oh-my-zsh.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment