Last active
May 28, 2016 12:23
-
-
Save rogerblanton/26d144b331e930d7771a to your computer and use it in GitHub Desktop.
Make Terminal Better
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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