Skip to content

Instantly share code, notes, and snippets.

# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@srmor
srmor / .bash_profile
Created January 7, 2016 23:11
bash customization
# prompt
source ~/.git-prompt.sh
export PS1="\[\e[00;38m\]\w\[\e[0m\]\[\e[00;33m\]\$(__git_ps1) \\[\e[00;38m\]$ \[\e[0m\]"
# git aliases
alias g="git"
alias co="checkout"
alias cm="commit -m"
alias st="clear && git status"
@srmor
srmor / gist:3009050
Created June 28, 2012 04:19 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt