Skip to content

Instantly share code, notes, and snippets.

@rogerblanton
Last active May 28, 2016 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogerblanton/26d144b331e930d7771a to your computer and use it in GitHub Desktop.
Save rogerblanton/26d144b331e930d7771a to your computer and use it in GitHub Desktop.
Make Terminal Better
alias reloadpr="source ~/.profile"
alias cp="cp -iv"
alias mv="mv -iv"
alias ls='ls -GFh'
alias ll='ls -FGhlAp'
# Directory Navigation
alias sites='cd ~/Sites'
alias ..="cd ../"
alias ...="cd ../../"
alias ....="cd ../../../"
alias mkdir="mkdir -pv"
alias http="python -m SimpleHTTPServer"
alias c="clear"
alias f="open -a Finder ./"
#colorize grep output
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias top='htop'
cd () { builtin cd "$@"; ll; }
trash () { command mv "$@"; ~/.Trash; }
alias qlf='qlmanage -p "$@" >& /dev/null'
# Fixing Terminal Colors
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$"
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# Use Unicode & do NOT use the "8bit hack" to input/output non-ASCII characters
# See http://code.google.com/p/iterm2/wiki/Keybindings
set input-meta on
set output-meta on
set convert-meta off
# http://osxdaily.com/2013/04/24/improve-command-line-history-search/
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
TAB: menu-complete
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# Adding maven to path
export PATH=~/Developer/Software/apache-maven/bin:$PATH
if [ -f ~/.bash_aliases ]; then
source ~/.bash_aliases
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment