Erro desconhecido da opção -1 / -n do uso da cabeça. Possivelmente relacionado a ruby
Eu tenho um problema recorrente ao iniciar o terminal no OSX 10.9.1.
Sempre que inicio o terminal, repito pelo menos 30 vezes o seguinte
Unknown option: 1
Usage: head [-options] <url>...
-m <method> use method for the request (default is 'HEAD')
-f make request even if head believes method is illegal
-b <base> Use the specified URL as base
-t <timeout> Set timeout value
-i <time> Set the If-Modified-Since header on the request
-c <conttype> use this content-type for POST, PUT, CHECKIN
-a Use text mode for content I/O
-p <proxyurl> use this as a proxy
-P don't load proxy settings from environment
-H <header> send this HTTP header (you can specify several)
-u Display method and URL before any response
-U Display request headers (implies -u)
-s Display response status code
-S Display response status chain
-e Display response headers
-d Do not display content
-o <format> Process HTML content in various ways
-v Show program version
-h Print this message
-x Extra debugging output
seguido finalmente por
/usr/local/bin/rbenv: fork: Resource temporarily unavailable
/usr/local/bin/rbenv: line 63: rbenv---version: command not found
/usr/local/bin/rbenv: line 63: rbenv-help: command not found
e isso repetiu 50 vezes
/usr/local/bin/rbenv: line 63: rbenv---version: command not found
/usr/local/bin/rbenv: line 63: rbenv-help: command not found
Achando que está relacionado ao Ruby, tentei
rvm get stable
e
curl -sSL https://get.rvm.io | bash -s stable
mas, em seguida, obtenha o erro:
Problema no certificado SSL: certificado autoassinado na cadeia de certificados
Eu também tentei reparar permissões (como de costume) sem solução (como de costume)
Esta não é uma área com a qual estou familiarizado, então não tenho certeza de qual árvore descascar agora. Alguém pode ajudar?
Aqui estão os conteúdos .bashrc e .bash_profile, conforme solicitado
Conteúdo .bashrc:
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
Conteúdo .bash_profile:
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
export PATH=$PATH:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/stevekirkby/.rvm/bin
export PATH=$PATH:/usr/local/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/stevekirkby/.rvm/bin
export PATH=$PATH:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin
export PATH=$PATH:$HOME/.rvm/bin
export PATH="/Applications/XAMPP/xamppfiles/bin:$PATH"
eval "$(rbenv init -)"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
alias htdocs='cd /Applications/XAMPP/xamppfiles/htdocs'
alias home='cd /Users/stevekirkby'
Obrigado Steve