Skip to content

Commit

Permalink
Copied giseong's idea of creating short aliases for vim based on OS. …
Browse files Browse the repository at this point in the history
…Misc additions.
  • Loading branch information
Todd Werth committed Dec 5, 2010
1 parent 2930490 commit 2f2d509
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions etc/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,14 @@ shopt -s cdable_vars # set the bash option so that no '$' is required when using
export EDITOR='vim' #Command line
export GIT_EDITOR='vim'
#alias gvim='/Applications/MacVim.app/Contents/MacOS/vim -g'
alias v=vim
alias mvimt='mvim --remote-tab'

if [ "$OS" = "darwin" ] ; then
alias v=mvim
alias vc=vim
alias vt='mvim --remote-tab'
else
alias v=vim
fi



Expand All @@ -191,6 +197,11 @@ findportuser() {
lsof -i :"$1"
}

track_traffic(){
# install ngrep with sudo port install ngrep
sudo ngrep -W byline -qld en0 "$1"
}



# Other aliases ----------------------------------------------------
Expand Down Expand Up @@ -256,6 +267,7 @@ killhard() {




# Bring in the other files ----------------------------------------------------
if [ $IS_INTERACTIVE = 'true' ] ; then
source ~/.bashrc_help
Expand Down

0 comments on commit 2f2d509

Please sign in to comment.