Commits

Frederic De Groef  committed c0d5006

new aliases

  • Participants
  • Parent commits fc38659

Comments (0)

Files changed (4)

File .bash_profile

 # Your previous /Users/sevas/.bash_profile file was backed up as /Users/sevas/.bash_profile.macports-saved_2011-01-18_at_21:27:17
 ##
 
-# MacPorts Installer addition on 2011-01-18_at_21:27:17: adding an appropriate PATH variable for use with MacPorts.
-export PATH=/opt/local/bin:/opt/local/sbin:$PATH
-# Finished adapting your PATH environment variable for use with MacPorts.
+
 
 
 
 select_system_python_27
 
-# Setting PATH for EPD-7.1-1
-# The orginal version is saved in .bash_profile.pysave
-#PATH="/Library/Frameworks/EPD64.framework/Versions/Current/bin:${PATH}"
-#export PATH
 
-# Setting PATH for EPD-7.1-1
-# The orginal version is saved in .bash_profile.pysave
-#PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
-#export PATH
 
+#export ARCHFLAGS="-arch i386 –arch x86_64"
 
-export ARCHFLAGS="-arch i386 –arch x86_64"
+export PATH="$PATH:/usr/local/sbin/"
+
+#. `brew --prefix`/etc/profile.d/z.sh
  
+
+function server() {
+	local port="${1:-8000}"
+	open "http://localhost:${port}/"
+	python -m SimpleHTTPServer "$port"
+}
+
+
+alias lt='tree --dirsfirst -ChFL 1'
+alias lt2='tree --dirsfirst -ChFL 2'
+alias lt3='tree --dirsfirst -ChFL 3' 
+alias lt4='tree --dirsfirst -ChFL 4'
  
+
+
+[difftool "sourcetree"]
+	cmd = /Applications/Kaleidoscope.app/Contents/MacOS/ksdiff -w \"$LOCAL\" \"$REMOTE\"
+	path =
+
+[mergetool "sourcetree"]
+	cmd = /Applications/SourceTree.app/Contents/Resources/araxisgitmerge-w.sh \"$REMOTE\" \"$BASE\" \"$LOCAL\" \"$MERGED\"
+	trustExitCode = true
+
+[user]
+	name = sevas
+	email = f.degroef@gmail.com
+
+[core]
+	excludesfile = /Users/sevas/Library/Application Support/TorusKnotSoftware/SourceTree/gitignore_default.txt
+	quotepath = false
+
+[difftool "Kaleidoscope"]
+	cmd = ksdiff-wrapper git \"$LOCAL\" \"$REMOTE\"
+
+[difftool]
+	prompt = false
+
+[diff]
+	tool = Kaleidoscope
+
+
+
+[color]
+  branch = auto
+  diff = auto
+  status = auto
+
+[color "branch"]
+  current = yellow reverse
+  local = yellow
+  remote = green
+
+[color "diff"]
+  meta = yellow bold
+  frag = magenta bold
+  old = red bold
+  new = green bold
+
+[color "status"]
+  added = yellow
+  changed = green
+  untracked = cyan
+VIRTUAL_ENV_DISABLE_PROMPT=1
+export OLD_PATH=$PATH
+source $HOME/.python_switchers.sh
+
+
+# Path to your oh-my-zsh configuration.
+ZSH=$HOME/.oh-my-zsh
+
+# Set name of the theme to load.
+# Look in ~/.oh-my-zsh/themes/
+# Optionally, if you set this to "random", it'll load a random theme each
+# time that oh-my-zsh is loaded.
+export ZSH_THEME="prose"
+
+# Set to this to use case-sensitive completion
+# CASE_SENSITIVE="true"
+
+# Comment this out to disable weekly auto-update checks
+# DISABLE_AUTO_UPDATE="true"
+
+# Uncomment following line if you want to disable colors in ls
+# DISABLE_LS_COLORS="true"
+
+# Uncomment following line if you want to disable autosetting terminal title.
+# DISABLE_AUTO_TITLE="true"
+
+# Uncomment following line if you want disable red dots displayed while waiting for completion
+# DISABLE_COMPLETION_WAITING_DOTS="true"
+
+# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
+# Example format: plugins=(rails git textmate ruby lighthouse)
+plugins=(git virtualenvwrapper pip django brew github osx git-flow gem)
+
+source $ZSH/oh-my-zsh.sh
+
+
+
+
+# Customize to your needs...
+export PATH=/Users/sevas/bin:/Users/sevas/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin/
+
+select_epd_64_72

File sync_with_home.py

 import os.path
 
 
-dotfiles = [".bash_profile", ".bash_pyfuncs", ".inputrc", ".pythonrc.py"]
+dotfiles = [".bash_profile", ".bash_pyfuncs", ".inputrc", ".pythonrc.py", ".gitconfig", ".zshrc"]
 scripts = ["update_python_switchers.py"]
 
 
 def copy_scripts_to_home():
     bin_dir = get_bin_dir()
     copy_files("./scripts", bin_dir, scripts)
-    
+
 
 
 
 if __name__=="__main__":
     import argparse
-    
+
     parser = argparse.ArgumentParser(description="")
-    parser.add_argument("--sync", choices=["to home", "from home"], 
+    parser.add_argument("--sync", choices=["to home", "from home"],
                         required=True, dest="sync_mode" )
-    
-    
+
+
     args = parser.parse_args()
-    
+
     if args.sync_mode == "to home":
         copy_dotfiles_to_home()
         copy_scripts_to_home()
-        
+
     elif args.sync_mode == "from home":
         copy_dotfiles_from_home()
         copy_scripts_from_home()