Šī lapa labāk darbojas, ja pārlūkam ir iespējots JavaScript.
Sākums
Izpētīt
Palīdzība
Pierakstīties
isprogram
/
pyenv
spogulis no
https://github.com/pyenv/pyenv.git
Vērot
1
Pievienot zvaigznīti
0
Atdalīts
0
Kods
Problēmas
0
Projects
0
Laidieni
181
Vikivietne
Aktivitāte
Pārlūkot izejas kodu
rbenv-init: do not use basename for $shell
This can be done using bash directly.
pull/487/head^2
Daniel Hahler
pirms 9 gadiem
vecāks
5b9e4f0584
revīzija
4ea7d0849b
1 mainītis faili
ar
2 papildinājumiem
un
1 dzēšanām
Dalītais skats
Salīdzināšanas iespējas
Rādīt statistiku
Lejupielādēt ielāpa failu
Lejupielādēt izmaiņu failu
+2
-1
libexec/rbenv-init
+ 2
- 1
libexec/rbenv-init
Parādīt failu
@ -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%/*}/.."
Rakstīt
Priekšskatītījums
Notiek ielāde…
Atcelt
Saglabāt