Skip to content

Instantly share code, notes, and snippets.

@RichardPovinelli
RichardPovinelli / .bash_aliases
Created November 19, 2012 16:01 — forked from RichardPovinelli/.bash_aliases
.bash_aliases for OS X
#!/bin/sh
# .bash_aliases
alias la='ls -alh'
alias lal='ls -alh | less'
alias h='history'
#strips off current comment from history so it doesn't show up
alias hg='history | head -$((`history | wc -l` - 1)) | grep -i '
@RichardPovinelli
RichardPovinelli / .bashrc
Created November 19, 2012 15:59 — forked from RichardPovinelli/.bashrc
.bashrc for OS X
#!/bin/sh
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Remove duplicates and unwanted commands in the bash history
if [ "$SHLVL" = 1 ]; then
@RichardPovinelli
RichardPovinelli / gnome-terminal-zenburn.sh
Created October 20, 2012 22:44 — forked from planbnet/gnome-terminal-zenburn.sh
Zenburn color scheme for gnome-terminal
#!/usr/bin/env bash
dir=$(dirname $0)
gconfdir=/apps/gnome-terminal/profiles
echo # This makes the prompts easier to follow (as do other random echos below)
########################
### Select a profile ###
########################