Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
isprogram
/
pyenv
espelhamento de
https://github.com/pyenv/pyenv.git
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Projects
0
Versões
241
Wiki
Atividade
Ver código fonte
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ć
10 anos atrás
pai
c6cf4e18b8
4ea7d0849b
commit
c43928a8e4
1 arquivos alterados
com
2 adições
e
1 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+2
-1
libexec/rbenv-init
+ 2
- 1
libexec/rbenv-init
Ver arquivo
@ -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%/*}/.."
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar