mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
rbenv-init: do not use basename for $shell
This can be done using bash directly.
This commit is contained in:
parent
5b9e4f0584
commit
4ea7d0849b
1 changed files with 2 additions and 1 deletions
|
@ -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%/*}/.."
|
||||
|
|
Loading…
Reference in a new issue