Created
May 29, 2012 09:46
-
-
Save jamesmoriarty/2823582 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| james ~ $ netx | |
| COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | |
| postgres 60855 james 5u IPv6 0xffffff800afe09c0 0t0 TCP [::1]:postgresql (LISTEN) | |
| postgres 60855 james 6u IPv4 0xffffff800ff86160 0t0 TCP 127.0.0.1:postgresql (LISTEN) | |
| postgres 60855 james 7u IPv6 0xffffff800afdf700 0t0 TCP [fe80:1::1]:postgresql (LISTEN) |
This file contains hidden or 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
| james ~ $ cd .vim | |
| james ~/.vim (master) $ |
This file contains hidden or 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
| PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting | |
| ## | |
| # Bash Functions | |
| ## | |
| __git_ps1 () { | |
| local b="$(git symbolic-ref HEAD 2>/dev/null)"; | |
| if [ -n "$b" ]; then | |
| printf " (%s)" "${b##refs/heads/}"; | |
| fi | |
| } | |
| pman () { | |
| man -t "${1}" | open -f -a /Applications/Preview.app | |
| } | |
| netx () { | |
| lsof -i -n | egrep 'COMMAND|LISTEN' | |
| } | |
| ## | |
| # Bash Customizations | |
| ## | |
| export CLICOLOR=1 # Enable color shell | |
| export LSCOLORS=ExFxCxDxBxegedabagacad # Define colors | |
| export COLOR_RED="\e[0;31m" | |
| export COLOR_PINK="\e[35;1m" | |
| export COLOR_NORMAL="\e[m" | |
| export PS1="$COLOR_PINK\u$COLOR_NORMAL \w$COLOR_RED\$(__git_ps1 ' (%s)')$COLOR_NORMAL \$ " | |
| ## | |
| # Keys | |
| ## | |
| export API_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment