mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
perlbrew-prompt
Display $PERLBREW_PERL, otherwise we're using "system perl"
This commit is contained in:
parent
757fa3314d
commit
fb31d596fd
1 changed files with 6 additions and 0 deletions
|
|
@ -12,6 +12,12 @@ alias pbo='perlbrew off'
|
||||||
alias pbs='perlbrew switch'
|
alias pbs='perlbrew switch'
|
||||||
alias pbu='perlbrew use'
|
alias pbu='perlbrew use'
|
||||||
|
|
||||||
|
perlbrew-prompt () {
|
||||||
|
perlversion=$PERLBREW_PERL
|
||||||
|
[[ -z $perlversion ]] && perlversion="system perl"
|
||||||
|
echo $perlversion
|
||||||
|
}
|
||||||
|
|
||||||
# Perl ############
|
# Perl ############
|
||||||
|
|
||||||
# perldoc`
|
# perldoc`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue