Commits

j committed 68816c1

MacVim command improvements and other bashrc cleanup

  • Participants
  • Parent commits d8a77a5

Comments (0)

Files changed (2)

 if [ "$OS" = "linux" ] ; then
   alias ls='ls --color=auto' # For linux, etc
   # ls colors, see: http://www.linux-sxs.org/housekeeping/lscolors.html
-  export LS_COLORS='di=34:fi=0:ln=35:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=31:*.rb=90:*.py=90'  #LS_COLORS is not supported by the default ls command in OS-X
+  export LS_COLORS='di=34:fi=0:ln=35:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=31:*.rb=90:*.py=90'  #LS_COLORS is not supported by the default ls command in OS X
 else
   alias ls='ls -G'  # Mac-specific - the -G command in OS X is for colors; in Linux it's no groups
 fi
 # History ----------------------------------------------------------
 export HISTCONTROL=ignoredups
 export HISTFILESIZE=3000
-export HISTIGNORE="ls:cd:cl:[bf]g:exit:..:...:la:ll:lla"
+export HISTIGNORE="ls:cd:cl:[bf]g:exit:..:...:la:ll:lla:ssh*"
 alias h=history
 hf(){ 
   grep "$@" ~/.bash_history
 
 
 # Editors ----------------------------------------------------------
-#export EDITOR='mate -w'  # OS-X SPECIFIC - TextMate, w is to wait for TextMate window to close
-#export EDITOR='gedit'  #Linux/gnome
 export EDITOR='vim'  #Command line
 export GIT_EDITOR='vim'
-#alias gvim='/Applications/MacVim.app/Contents/MacOS/vim -g'
+alias updatevim='vim +BundleInstall! +BundleClean +qall'
 
 if [ "$OS" = "darwin" ] ; then
+  alias mvim='/Applications/MacVim.app/Contents/MacOS/vim -g'
   alias v=mvim
   alias vc=vim
   alias vt='mvim --remote-tab'
 
 
 
-# Security ---------------------------------------------------------
-
-# Folder shared by a group
-# chmod g+s directory 
-#find /foo -type f -print | xargs chmod g+rw,o-rwx,u+rw
-#find /foo -type d -print | xargs chmod g+rwxs,o-rwx,u+rwx
-
-# this might work just the same (not tested)
-# chmod -R g+rwXs,o-rwx,u+rwX /foo
-
-
-
 # Sluething----------------------------------------------------
 findportuser() {
   lsof -i :"$1"

File etc/bashrc_app_specific

 
 if [ ! -z $VENVWRAP ]; then
     # virtualenvwrapper ------------------------------------------------
-    # make sure env directory exits; else create it
+    # make sure env directory exists; else create it
     [ -d $HOME/sites/env ] || mkdir -p $HOME/sites/env
     export WORKON_HOME=$HOME/sites/env
     source $VENVWRAP