Emacs - some dired mapping
[dotfiles.git] / zsh / zshrc
index 7a5b102..6056f55 100644 (file)
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -3,6 +3,9 @@
 # Darwin or Linux
 OSNAME=`uname` 
 
+# For Emacs Tramp mode
+[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
+
 autoload colors
 colors
 
@@ -111,7 +114,14 @@ alias ln='ln -i'
 #alias svn='colorsvn'
 alias sed='/usr/local/bin/gsed'
 
+##### Git 
+alias 'gs'='git status'
+alias 'ga'='git add'
+alias 'gc'='git commit'
+alias 'gl'='git log  --oneline --graph --all --color --decorate --abbrev-commit'
 alias 'git-log'='git log  --oneline --graph --all --color --decorate --abbrev-commit'
+alias 'gdiff'='git diff'
+alias 'gpush'='git push origin master'
 
 
 
@@ -309,3 +319,10 @@ if [[ $OSNAME == 'Darwin' ]]; then
     PERL_MB_OPT="--install_base \"$HOME/perl5\""; export PERL_MB_OPT;
     PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"; export PERL_MM_OPT;
 fi
+
+# add Racket into PATH
+export PATH="/Applications/Racket v6.6/bin":$PATH;
+export MANPATH="/Applications/Racket v6.6/man":$MANPATH;
+
+# export ~/.bin into PATH
+export PATH="$HOME/.bin":$PATH;