Skip to content

Instantly share code, notes, and snippets.

@edomora97
Last active October 20, 2015 12:15
Show Gist options
  • Save edomora97/61476af5b83e1dae5d0a to your computer and use it in GitHub Desktop.
Save edomora97/61476af5b83e1dae5d0a to your computer and use it in GitHub Desktop.
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
ZSH_THEME="lukerandall"
# 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"
# 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 cp debian gem github gitignore gnu-utils rails rake rbenv rsync ruby rvm screen sudo)
# User configuration
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
# export MANPATH="/usr/local/man:$MANPATH"
source $ZSH/oh-my-zsh.sh
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
export EDITOR='vim'
# Compilation flags
export ARCHFLAGS="-arch x86_64"
# ssh
export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias timestamp="date +'%s'"
alias fat='pygmentize -O style=monokai -f console256 -g'
alias trim="sed -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*\$//g'"
alias urldecode='python -c "import sys, urllib as ul; print ul.unquote_plus(sys.argv[1])"'
alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])"'
alias randpass="< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-16};echo;"
ret=$(python -c 'import sys; print("%i" % (sys.hexversion<0x03000000))')
if [ $ret -eq 0 ]; then
alias httpshare='python -m http.server 8765'
else
alias httpshare='python -m SimpleHTTPServer 8765'
fi
alias myip='dig +short myip.opendns.com @resolver1.opendns.com'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment