소스 검색

rbenv-init: do not use basename for $shell

This can be done using bash directly.
pull/487/head^2
Daniel Hahler 9 년 전
부모
커밋
4ea7d0849b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      libexec/rbenv-init

+ 2
- 1
libexec/rbenv-init 파일 보기

@ -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%/*}/.."

불러오는 중...
취소
저장