Skip to content

Instantly share code, notes, and snippets.

Created April 17, 2013 08:29
  • Star 8 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
zsh aliases
# Path to your oh-my-zsh configuration.
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
# Comment this out to disable bi-weekly auto-update checks
# Uncomment to change how often before auto-updates occur? (in days)
# export UPDATE_ZSH_DAYS=13
# Uncomment following line if you want to disable colors in ls
# Uncomment following line if you want to disable autosetting terminal title.
# Uncomment following line if you want to disable command autocorrection
# Uncomment following line if you want red dots to be displayed while waiting for completion
# Uncomment 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.
# 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)
source $ZSH/
# Customize to your needs...
export PATH=$PATH:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
# Add yourself some shortcuts to projects you often work on
# Example:
# brainstormr=/Users/robbyrussell/Projects/development/planetargon/brainstormr
alias help='cat ~/.oh-my-zsh/custom/aliases.zsh'
alias aliases='vim ~/.oh-my-zsh/custom/aliases.zsh'
alias wp='cd ~/Devel/nginx/wp/wp-content/themes/roots/'
alias my='sudo chown -R `id -u`'
alias c='clear'
alias h='history'
alias r='source ~/.zshrc'
# APT GET Stuff
alias u='sudo apt-get update && sudo apt-get upgrade -y'
alias up='sudo apt-get update'
alias ug='sudo apt-get upgrade -y'
alias i='sudo apt-get install -y'
alias rem='sudo apt-get remove'
alias purge='sudo apt-get purge'
alias ar='sudo apt-get autoremove -y'
alias aar='sudo add-apt-repository -y'
alias dug='sudo apt-get dist-upgrade -y' ../..'
alias tgz='tar -cvvzf'
alias tbz2='tar -cvvjf'
alias utgz='tar -xvvzf'
alias utbz2='tar -xvvjf'
alias mktar='tar -cvvf'
alias untar='tar -xvvf'
alias pid='ps -A -e -l | grep'
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
alias youtube-dl='youtube-dl -t --audio-format mp3 --extract-audio --audio-quality 192'
alias pdfconvert='gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf'
# LS Stuff
alias ls='ls -F --color=always --group-directories-first'
alias ll='ls -la'
alias ld='ls -d */'
alias la='ls -CA'
alias l='ls'
# GIT Stuff
alias gs='git status'
alias gc='git commit -m'
alias gca='git commit -am'
alias ga='git add'
alias gaa='git add .'
# CD Stuff
alias .='cd && ld'
alias ..='cd .. && ld'
alias ...='cd ../.. && ld'
alias ,='cd'
alias ,,='cd ..'
alias ,,,='cd
# ZSH Theme - Preview:
PROMPT='%n%{$fg_bold[red]%}λ%{$reset_color%}%m %~/ %{$fg[red]%}{%{$reset_color%} '
RPROMPT='%{$fg[red]%}}%{$reset_color%} $(git_prompt_info)%{$fg[white]%}%D{%L:%M}%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_DIRTY=":dirty%{$fg[red]%} ✘ "
ZSH_THEME_GIT_PROMPT_UNTRACKED=":untracked%{$fg[cyan]%} ✭ "
ZSH_THEME_GIT_PROMPT_CLEAN=":clean%{$fg[green]%} ✔ "
ZSH_THEME_GIT_PROMPT_ADDED=":added%{$fg[cyan]%} ✚ "
ZSH_THEME_GIT_PROMPT_MODIFIED=":modified%{$fg[yellow]%} ⚡ "
ZSH_THEME_GIT_PROMPT_DELETED=":deleted%{$fg[red]%} ✖ "
ZSH_THEME_GIT_PROMPT_RENAMED=":renamed%{$fg[blue]%} ➜ "
ZSH_THEME_GIT_PROMPT_UNMERGED=":unmerged%{$fg[red]%} ♒ "
# Download the latest packages & upgrade - for convenience's sake
apt-get update
apt-get upgrade -y
# PPAs
add-apt-repository -y ppa:nilarimogard/webupd8
add-apt-repository -y ppa:otto-kesselgulasch/gimp
add-apt-repository -y ppa:chris-lea/node.js
apt-get update
apt-get install node gimp android-tools ppa-purge
# Ubuntu Repositories
apt-get install -y git htop vim curl build-essential filezilla node guake zsh
# Configure Git
git config --global "Jonathan Jenne"
git config --global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment