zsh: remove rbenv

master
Guillaume Dott 2017-04-06 14:24:53 +02:00
parent 03fcc1cbae
commit b9328742c1
1 changed files with 10 additions and 15 deletions

View File

@ -82,6 +82,8 @@ setopt autopushd
bindkey -v bindkey -v
bindkey -M vicmd v edit-command-line bindkey -M vicmd v edit-command-line
export KEYTIMEOUT=1
# Affiche le mode (normal ou insert) dans le prompt de droite # Affiche le mode (normal ou insert) dans le prompt de droite
function zle-line-init zle-keymap-select function zle-line-init zle-keymap-select
{ {
@ -121,7 +123,7 @@ fi
export PS1='%m%{$fg[$COLOR]%}:%{$reset_color%}%~${vcs_info_msg_0_}%{$fg[$COLOR]%}%#%{$reset_color%} ' export PS1='%m%{$fg[$COLOR]%}:%{$reset_color%}%~${vcs_info_msg_0_}%{$fg[$COLOR]%}%#%{$reset_color%} '
export PS2="%_> " export PS2="%_> "
export PATH="${PATH}:${HOME}/.gem/ruby/1.9.1/bin" export PATH="${PATH}:${HOME}/.gem/ruby/2.3.0/bin"
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;31m' # begin bold export LESS_TERMCAP_md=$'\E[01;31m' # begin bold
@ -131,20 +133,6 @@ export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_us=$'\E[01;32m' # begin underline export LESS_TERMCAP_us=$'\E[01;32m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # end underline export LESS_TERMCAP_ue=$'\E[0m' # end underline
# rbenv initialisation and ruby optimisations
export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fi
export RUBY_GC_HEAP_INIT_SLOTS=800000
export RUBY_HEAP_FREE_MIN=100000
export RUBY_HEAP_SLOTS_INCREMENT=300000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=79000000
precmd() { precmd() {
[ -t 0 ] && print -Pn "\33]2;%(!.[ROOT] .)%m:%~ | ${COLUMNS}x${LINES} | %y\007" [ -t 0 ] && print -Pn "\33]2;%(!.[ROOT] .)%m:%~ | ${COLUMNS}x${LINES} | %y\007"
vcs_info vcs_info
@ -203,6 +191,13 @@ function send_infocmp() {
infocmp rxvt-unicode-256color | ssh $REMOTE "mkdir -p .terminfo && cat >/tmp/ti && tic /tmp/ti" infocmp rxvt-unicode-256color | ssh $REMOTE "mkdir -p .terminfo && cat >/tmp/ti && tic /tmp/ti"
} }
function fake_git() {
TIME=$1; shift
DATE=$(date +"%a %b %d $TIME:%S %Y %z")
GIT_COMMITTER_DATE=$DATE git commit --date=$DATE "$@"
}
trap "source ~/.zshrc && rehash" USR1 trap "source ~/.zshrc && rehash" USR1
loadkeychain loadkeychain