Skip to content

Instantly share code, notes, and snippets.

@inhji
Created Apr 17, 2013
Embed
What would you like to do?
zsh aliases
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# 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.
ZSH_THEME="lambda-inhji"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# 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
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want to disable command autocorrection
# DISABLE_CORRECTION="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# 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.
# 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)
plugins=(git)
source $ZSH/oh-my-zsh.sh
# 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`'
# SHORTCUTS
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' ../..'
# EXTRACTING Stuff
alias tgz='tar -cvvzf'
alias tbz2='tar -cvvjf'
alias utgz='tar -xvvzf'
alias utbz2='tar -xvvjf'
alias mktar='tar -cvvf'
alias untar='tar -xvvf'
# PROCESS Stuff
alias pid='ps -A -e -l | grep'
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
#Clipboardhelper
# MEDIA
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: http://cl.ly/350F0F0k1M2y3A2i3p1S
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_PREFIX="%{$fg_bold[white]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$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]%} ♒ "
#!/bin/bash
# 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 user.name "Jonathan Jenne"
git config --global user.email jjenne@inhji.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment