Parcourir la source

Merge pull request #731 from blueyed/init-no-basename-for-shell

rbenv-init: do not use basename for $shell
pull/487/head^2
Mislav Marohnić il y a 10 ans
Parent
révision
c43928a8e4
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      libexec/rbenv-init

+ 2
- 1
libexec/rbenv-init Voir le fichier

@ -25,7 +25,8 @@ if [ -z "$shell" ]; then
shell="$(ps c -p "$PPID" -o 'ucomm=' 2>/dev/null || true)"
shell="${shell##-}"
shell="${shell%% *}"
shell="$(basename "${shell:-$SHELL}")"
shell="${shell:-$SHELL}"
shell="${shell##*/}"
fi
root="${0%/*}/.."

Chargement…
Annuler
Enregistrer