Permalink
Browse files

Use plenv instead of perlbrew

  • Loading branch information...
1 parent 04b761b commit 8f965e9f00fadccc58cd2380a8d846a0a6a7523b @aereal committed Apr 9, 2013
Showing with 7 additions and 17 deletions.
  1. +5 −9 .zshenv
  2. +2 −8 .zshrc
View
14 .zshenv
@@ -1,7 +1,7 @@
export ZSH_HOME=$HOME/.zsh.d
export HOMEBREW_HOME=$HOME/opt/homebrew
export RBENV_HOME=$HOME/.rbenv
-export PERLBREW_ROOT=$HOME/.perlbrew
+export PLENV_HOME=$HOME/.plenv
if [[ -e "$HOMEBREW_HOME/opt/macvim/MacVim.app" ]]; then
export EDITOR="$HOMEBREW_HOME/opt/macvim/MacVim.app/Contents/MacOS/Vim"
@@ -24,17 +24,17 @@ typeset -Ua \
user_path \
homebrew_path \
rbenv_path \
+ plenv_path \
sudo_path \
system_path
user_path=(
$HOME/bin(N-/)
)
rbenv_path=(
- $RBENV_HOME/bin(N-/)
$RBENV_HOME/shims(N-/)
)
-perlbrew_path=(
- $PERLBREW_ROOT/bin(N-/)
+plenv_path=(
+ $PLENV_HOME/shims(N-/)
)
homebrew_path=(
$HOMEBREW_HOME/share/npm/bin(N-/)
@@ -57,6 +57,7 @@ typeset -U path
path=(
$user_path
$rbenv_path
+ $plenv_path
$homebrew_path
$system_path
$sudo_path
@@ -102,11 +103,6 @@ if /usr/bin/which -s rbenv; then
fi
# }}}
-# perlbrew {{{
-if [[ -e "$PERLBREW_ROOT/etc/bashrc" ]]; then
- source "$PERLBREW_ROOT/etc/bashrc"
-fi
-# }}}
# shared-mime-info {{{
if /usr/bin/which -s update-mime-database; then
View
10 .zshrc
@@ -242,8 +242,8 @@ function update_prompt() { # {{{
# }}}
# Perl version {{{
- if [[ -n "$PERLBREW_PERL" ]]; then
- _perl_version_string="Perl: ${PERLBREW_PERL#perl-}"
+ if [[ -e "$HOME/.plenv/version" ]]; then
+ _perl_version_string="Perl: $(cat $HOME/.plenv/version)"
perl_version="%{${fg[blue]}%}$_perl_version_string%{${reset_color}%}"
fi
# }}}
@@ -338,12 +338,6 @@ add-zsh-hook chpwd abbreviated_ls
# }}}
# Switch local Perl {{{
-function switch-perl-version() { # {{{
- if [[ -e ".perl-version" ]]; then
- perlbrew use $(cat .perl-version)
- fi
-} # }}}
-add-zsh-hook chpwd switch-perl-version
# }}}
# Update window title {{{

0 comments on commit 8f965e9

Please sign in to comment.