每次打开终端时,我都收到此消息。并运行无限次

时间:2018-03-19 07:48:09

标签: bash

-bash:export:Workbooks.app/Contents/SharedSupport/path-bin

  

不是有效的标识符

This is how my bash profile looks like

启用标签页

            source ~/git-completion.bash

            # colors!
            green="\[\033[0;32m\]"
            blue="\[\033[0;34m\]"
            purple="\[\033[0;35m\]"
            reset="\[\033[0m\]"

            # Change command prompt
            export GIT_PS1_SHOWDIRTYSTATE=1
            # '\u' adds the name of the current user to the prompt
            # '\$(__git_ps1)' adds git-related stuff
            # '\W' adds the name of the current directory
            export PS1="$purple\u$green\$(__git_ps1)$blue \W $ $reset"

            alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
            # Homebrew
            export PATH=/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin
            # Homebrew
            export PATH=/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin
            source ~/.bash_profile
            VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python2
            source /usr/local/bin/virtualenvwrapper.sh
            source ~/.bash_profile

1 个答案:

答案 0 :(得分:0)

    source ~/git-completion.bash
    # colors!
    green="\[\033[0;32m\]"
    blue="\[\033[0;34m\]"
    purple="\[\033[0;35m\]"
    reset="\[\033[0m\]"

    # Change command prompt
    export GIT_PS1_SHOWDIRTYSTATE=1
    # '\u' adds the name of the current user to the prompt
    # '\$(__git_ps1)' adds git-related stuff
    # '\W' adds the name of the current directory
    export PS1="$purple\u$green\$(__git_ps1)$blue \W $ $reset"

    alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
    # Homebrew
    export PATH="/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin"
    # Homebrew
    export PATH="/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin"
    source ~/.git-prompt.sh
相关问题