Strona działa najlepiej z włączonym JavaScript.
Strona główna
Odkrywaj
Pomoc
Zaloguj się
isprogram
/
pyenv
kopia lustrzana
https://github.com/pyenv/pyenv.git
Obserwuj
1
Polub
0
Forkuj
0
Kod
Zgłoszenia
0
Projects
0
Wydania
181
Wiki
Aktywność
Przeglądaj źródła
rbenv-init: do not use basename for $shell
This can be done using bash directly.
pull/487/head^2
Daniel Hahler
9 lat temu
rodzic
5b9e4f0584
commit
4ea7d0849b
1 zmienionych plików
z
2 dodań
i
1 usunięć
Widok podzielony
Opcje porównania
Pokaż statystyki
Ściągnij plik aktualizacji
Ściągnij plik porównania
+2
-1
libexec/rbenv-init
+ 2
- 1
libexec/rbenv-init
Wyświetl plik
@ -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%/*}/.."
Napisz
Podgląd
Ładowanie…
Anuluj
Zapisz