Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 390f7335633594a2ea3f59c865ca033d37be4355 @AndrewRadev committed Dec 26, 2010
Showing with 203 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. 0 _project.vim
  3. +33 −0 bash/colors.bash
  4. +20 −0 bashrc
  5. +44 −0 shared/aliases.sh
  6. +25 −0 shared/functions.sh
  7. +7 −0 shared/path.sh
  8. +2 −0 zsh/functions.zsh
  9. +24 −0 zsh/keys.zsh
  10. +21 −0 zsh/options.zsh
  11. +13 −0 zsh/prompt.zsh
  12. +13 −0 zshrc
@@ -0,0 +1 @@
+local_*
No changes.
@@ -0,0 +1,33 @@
+txtblk='\e[0;30m' # Black - Regular
+txtred='\e[0;31m' # Red
+txtgrn='\e[0;32m' # Green
+txtylw='\e[0;33m' # Yellow
+txtblu='\e[0;34m' # Blue
+txtpur='\e[0;35m' # Purple
+txtcyn='\e[0;36m' # Cyan
+txtwht='\e[0;37m' # White
+bldblk='\e[1;30m' # Black - Bold
+bldred='\e[1;31m' # Red
+bldgrn='\e[1;32m' # Green
+bldylw='\e[1;33m' # Yellow
+bldblu='\e[1;34m' # Blue
+bldpur='\e[1;35m' # Purple
+bldcyn='\e[1;36m' # Cyan
+bldwht='\e[1;37m' # White
+unkblk='\e[4;30m' # Black - Underline
+undred='\e[4;31m' # Red
+undgrn='\e[4;32m' # Green
+undylw='\e[4;33m' # Yellow
+undblu='\e[4;34m' # Blue
+undpur='\e[4;35m' # Purple
+undcyn='\e[4;36m' # Cyan
+undwht='\e[4;37m' # White
+bakblk='\e[40m' # Black - Background
+bakred='\e[41m' # Red
+badgrn='\e[42m' # Green
+bakylw='\e[43m' # Yellow
+bakblu='\e[44m' # Blue
+bakpur='\e[45m' # Purple
+bakcyn='\e[46m' # Cyan
+bakwht='\e[47m' # White
+txtrst='\e[0m' # Text Reset
@@ -0,0 +1,20 @@
+source ~/.shell/shared/aliases.sh
+source ~/.shell/shared/path.sh
+source ~/.shell/shared/functions.sh
+
+source ~/.shell/bash/colors.bash
+
+eval `dircolors`
+
+PS1="\[$txtgrn\]\u@\h \[$txtrst\]\W\[$txtgrn\]>\[$txtrst\] "
+
+export EDITOR=vim
+export SVN_MERGE=gvimdiff
+export HISTIGNORE="&:ls:exit:rm"
+
+shopt -s extglob
+
+[[ -s ~/.shell/local_shared ]] && source ~/.shell/local_shared
+
+[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
+return 0
@@ -0,0 +1,44 @@
+alias sudo='sudo -E'
+
+alias ls='ls -h --color=always --group-directories-first'
+alias lss='ls -1'
+alias lsl='ls -l'
+alias lsa='ls -a'
+alias lsal='ls -al'
+
+alias cal='cal -m'
+
+alias cdu='cdu -idh'
+alias cdf='cdf -h'
+
+alias snes='snes9x -r 7 -y3'
+alias gvim='gvim -geometry 999x999'
+alias clive='clive --format=best'
+
+alias e=vim
+alias u='cd ..'
+
+alias ffeh='feh -F'
+
+alias vimfiles='vim -c "Proj vimfiles"'
+alias clip='vim +ClipBrd +only'
+alias vrename='vim +Rename'
+
+alias vim-white='vim -c "colo thegoodluck"'
+alias sf='php symfony --color'
+
+alias svn-missing="svn status | grep ^! | cut -d' ' -f8"
+alias svn-unknown="svn status | grep ^? | cut -d' ' -f8"
+
+alias rm-svn='rm -rf `find . -type d -name .svn`'
+
+alias g='git'
+alias gst='git status'
+alias gc='git commit -v'
+alias gca='git commit -av'
+alias gdv='git diff -w "$@" | vim -R -'
+alias gp='git push'
+alias gl='git pull'
+
+alias git-deleted="git status --short | grep D | cut -b4-"
+alias git-unknown="git status --short | grep ?? | cut -b4-"
@@ -0,0 +1,25 @@
+# Use vim as a man viewer
+function vimman() { vim -R -c "Man $1 $2" -c "bdelete 1"; }
+alias man=vimman
+
+# Extract Stuff
+extract () {
+ if [ -f $1 ]; then
+ case $1 in
+ *.tar.bz2) tar xvjf $1 ;;
+ *.tar.gz) tar xvzf $1 ;;
+ *.bz2) bunzip2 $1 ;;
+ *.rar) unrar e $1 ;;
+ *.gz) gunzip $1 ;;
+ *.tar) tar xvf $1 ;;
+ *.tbz2) tar xvjf $1 ;;
+ *.tgz) tar xvzf $1 ;;
+ *.zip) unzip $1 ;;
+ *.Z) uncompress $1 ;;
+ *.7z) 7z x $1 ;;
+ *) echo "'$1' cannot be extracted via extract()" ;;
+ esac
+ else
+ echo "'$1' is not a valid file"
+ fi
+}
@@ -0,0 +1,7 @@
+export PATH=$PATH:/usr/local/bin
+export PATH=$PATH:/home/andrew/bin
+export PATH=$PATH:/home/andrew/lib/flex/bin
+export PATH=$PATH:/home/andrew/.cabal/bin
+export PATH=$PATH:/opt/diet/bin
+# ccache path exported before compiler
+export PATH=/usr/lib/ccache/bin:$PATH
@@ -0,0 +1,2 @@
+# Do nothing
+function nop() { }
@@ -0,0 +1,24 @@
+bindkey -v
+
+zle -N nop
+
+# key bindings
+# bindkey "\e[1~" beginning-of-line
+# bindkey "\e[4~" end-of-line
+# bindkey "\e[5~" beginning-of-history
+# bindkey "\e[6~" end-of-history
+# bindkey "\e[3~" delete-char
+# bindkey "\e[2~" quoted-insert
+# bindkey "\e[5C" forward-word
+# bindkey "\eOc" emacs-forward-word
+# bindkey "\e[5D" backward-word
+# bindkey "\eOd" emacs-backward-word
+# bindkey "\e\e[C" forward-word
+# bindkey "\e\e[D" backward-word
+# bindkey "^H" backward-delete-word
+
+bindkey "\e[7~" beginning-of-line
+bindkey "\e[8~" end-of-line
+
+# Unmap my weird menu button
+bindkey "\e[25~" nop
@@ -0,0 +1,21 @@
+# History
+HISTFILE=~/.zsh_history
+HISTSIZE=10000
+SAVEHIST=10000
+
+setopt share_history
+setopt hist_verify
+setopt hist_ignore_dups
+setopt inc_append_history
+setopt hist_ignore_space
+
+# Automatic pushd
+setopt auto_pushd
+setopt pushd_ignore_dups
+
+# Prompts for confirmation after 'rm *'
+setopt rm_star_wait
+
+# Background processes aren't killed on exit of shell
+setopt auto_continue
+setopt no_hup
@@ -0,0 +1,13 @@
+setopt prompt_subst
+autoload colors; colors;
+
+function maybe_shell_depth() {
+ if [[ $SHLVL -gt 1 ]] ; then
+ echo "%{${fg[red]}%}+%{$reset_color%} ";
+ else
+ echo '';
+ fi
+}
+
+export PROMPT="$(maybe_shell_depth)%M %{${fg[yellow]}%}%#%{$reset_color%} "
+export RPROMPT="%{${fg[green]}%}%~%{$reset_color%}"
@@ -0,0 +1,13 @@
+source ~/.shell/shared/aliases.sh
+source ~/.shell/shared/path.sh
+source ~/.shell/shared/functions.sh
+
+source ~/.shell/zsh/options.zsh
+source ~/.shell/zsh/functions.zsh
+source ~/.shell/zsh/keys.zsh
+source ~/.shell/zsh/prompt.zsh
+
+[[ -s ~/.shell/local_shared ]] && source ~/.shell/local_shared
+
+[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
+return 0

0 comments on commit 390f733

Please sign in to comment.