-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
156 lines (120 loc) · 4.69 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# 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.
#ZSH_THEME="robbyrussell"
#ZSH_THEME="gentoo"
#ZSH_THEME="josh"
#ZSH_THEME="aussiegeek"
#ZSH_THEME="simonoff"
#ZSH_THEME="jonathan"
#ZSH_THEME="half-life"
#ZSH_THEME="Soliah"
#ZSH_THEME="3den"
#ZSH_THEME="fino"
#ZSH_THEME="murilasso"
ZSH_THEME="ale"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Uncomment this to disable bi-weekly auto-update checks
DISABLE_AUTO_UPDATE="true"
# Uncomment to change how often before auto-updates occur? (in days)
# export UPDATE_ZSH_DAYS=13
# 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 to disable command autocorrection
DISABLE_CORRECTION="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
# Uncomment following line if you want to disable marking untracked files under
# VCS as dirty. This makes repository status check for large repositories much,
# much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git github git-flow cap gem bundler vi-mode rvm ale rails3)
source $ZSH/oh-my-zsh.sh
bindkey -M viins \\C-R history-incremental-search-backward
# Customize to your needs...
# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples
export EDITOR=vim
export VISUAL=vim
export LANGUAGE=en
# testing en netbook con rspec, error: * glibc detected * ruby: double free or corruption (!prev)
export MALLOC_CHECK_=2
export GREP_OPTIONS='--color=auto --binary-files=without-match'
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
#shopt -s histappend
fc -W
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=100000
HISTFILESIZE=200000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
#shopt -s checkwinsize
#
PROMPT_COMMAND='history -n;history -a'
#
export HISTTIMEFORMAT="%F %T "
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
unset color_prompt force_color_prompt
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# alias AEB
alias ll='ls -alFh'
alias finan='cd ~/web/finan'
alias one='cd ~/Ubuntu\ One'
alias rls='cd ~/rails'
alias wip='cd ~/rails/rfinan/'
alias dropbox='dropbox start -i'
alias rmsw='find -name "*.sw?" -delete'
alias t="tree -L $1"
alias clocall='~/Programas/cloc/cloc-1.56.pl --force-lang="HTML",erb --force-lang="CSS",scss --force-lang="Ruby",feature lib app spec config db features'
alias cloc='~/Programas/cloc/cloc-1.56.pl --force-lang="HTML",erb --force-lang="CSS",scss --force-lang="Ruby",feature'
alias h='fc -lid 1'
## Pipe Aliases (Global)
alias -g L='|less'
alias -g LG=' --color=always |less -R'
alias -g G='|grep'
alias -g T='|tail'
alias -g H='|head'
alias -g W='|wc -l'
alias -g S='|sort'
unsetopt auto_name_dirs
rvm_project_rvmrc=1
PATH=$PATH:$HOME/.rvm/bin:/home/alejandro/Programas/phantomjs/bin # Add RVM to PATH for scripting
[[ -s "/home/alejandro/.rvm/scripts/rvm" ]] && source "/home/alejandro/.rvm/scripts/rvm"
unset RUBYOPT
#cd . # to rvm reload
[ -z "$TMUX" ] && export TERM=xterm-256color
function git_diff() {
git diff --no-ext-diff -w "$@" | vim -R -
}
# c-s & c-q disable for work with vim
stty -ixon