Eu estava mexendo no meu PATH no meu Mac porque a produção caseira não estava funcionando. Meu caminho pode ser dividido em três versões:
O caminho limpo é o caminho mais ideal, já que não uso mais o SDK do Pebble. O caminho desagradável é o caminho original e confuso. O caminho antigo é um caminho desagradável com os erros removidos
Nasty path
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Users/peterkaminski/anaconda/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0- BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/peterkaminski/apache-ant-1.9.3
Clean path
/opt/local/bin:/opt/local/sbin:/Users/peterkaminski/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/peterkaminski/apache-ant-1.9.3
OLD PATH
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Users/peterkaminski/anaconda/bin:“/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/peterkaminski/apache-ant-1.9.3/bin:??
Meu ~ / .bash_profile para o caminho desagradável se parece com isso: (Me perdoe, eu estive brincando com ele por cerca de uma hora tentando consertá-lo, então parece terrível)
JAVA_HOME="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"
ANT_HOME="/Users/peterkaminski/apache-ant-1.9.3"
LES_SDK="/Users/peterkaminski/Lexmark"
export PATH=~/pebble-dev/PebbleSDK-2.0-BETA4/bin:$PATH
export PATH=~/pebble-dev/PebbleSDK-2.0-BETA4/bin:$PATH
export PATH=~/pebble-dev/PebbleSDK-2.0-BETA5/bin:$PATH
export PATH=~/pebble-dev/PebbleSDK-2.0-BETA5/bin:$PATH
export JAVA_HOME
export ANT_HOME
export LES_SDK
PATH=“/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$JAVA_HOME/bin:$ANT_HOME/bin:$LES_SDK”
export PATH
# added by Anaconda 2.2.0 installer
export PATH="/Users/peterkaminski/anaconda/bin:$PATH"
#PATH=“/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$JAVA_HOME/bin:$ANT_HOME/bin:$LES_SDK”
#export PATH
##
# Your previous /Users/peterkaminski/.bash_profile file was backed up as /Users/peterkaminski/.bash_profile.macports-saved_2015-06-24_at_10:32:22
##
# MacPorts Installer addition on 2015-06-24_at_10:32:22: adding an appropriate PATH variable for use with MacPorts.
# export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
##
# Your previous /Users/peterkaminski/.bash_profile file was backed up as /Users/peterkaminski/.bash_profile.macports-saved_2015-09-07_at_22:49:58
##
# MacPorts Installer addition on 2015-09-07_at_22:49:58: adding an appropriate PATH variable for use with MacPorts.
#export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
##
# Your previous /Users/peterkaminski/.bash_profile file was backed up as /Users/peterkaminski/.bash_profile.macports-saved_2015-09-24_at_23:53:49
##
# MacPorts Installer addition on 2015-09-24_at_23:53:49: adding an appropriate PATH variable for use with MacPorts.
#export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
Como faço para modificar o caminho para recuperá-lo para um estado padrão? Ou você percebe algum erro gritante? Não tenho certeza do que traria a adição de um "e o bin: ??.