Everytime I open iTerm my .zshrc file gets a new vscode Path line










0














# iTerm
# CMD + D to split screen (left right)
# CMD + D + Shift to split screen (up down)
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"


I removed all except for 1, when I close and reopen iTerm2. It adds another line :(



Full .zshrc file



cat << EOF >> ~/.zshrc
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
EOF

export PATH="/usr/local/opt/node@8/bin:$PATH"
export NODE_ENV
export EDITOR='atom -w'i
# export EDITOR='/usr/local/bin/atom'
export TERM="xterm-256color"
export ZSH=/Users/leongaban/.oh-my-zsh
export GIT_EDITOR=vim

# trade.io
alias trade="projects/trade.io/"
# alias tradefe="projects/trade.io/tradeio-front"
alias tradefe="projects/trade.io/frontend"
alias chrome="open /Applications/Google Chrome.app --args --disable-web-security --user-data-dir --ignore-certificate-errors"

# heroku
alias herokuprod="git push heroku master"
# alias herokustag="git push heroku master"

# personal
alias leongaban="projects/leongaban/"
alias gaban="projects/Gaban/"
alias moon="projects/Futuratum/moon.holdings"
alias moonio="projects/Futuratum/moonholdings.io"
alias moonnode="projects/Futuratum/moon.node"

alias futr="projects/Futuratum/"
alias tuts="projects/tutorials/"
alias udemy="projects/tutorials/udemy/"
alias areact="projects/tutorials/wesbos/Advanced-React"

# Configs
alias zconfig="atom ~/.zshrc"
alias ohmyzsh="atom ~/.oh-my-zsh"
alias hconfig="atom ~/.hyper.js"
alias gconfig="atom ~/.gitconfig"
alias hosts="sudo atom /etc/hosts"

# Yarn scripts
alias yarnstart="yarn start-legacy"

# Yarn jest tests
alias ju="npm t -- --u"
alias jw="yarn run test-jest:watch"
alias jt="yarn jest test"
alias jc="yarn run test-jest:coverage"

alias myip="ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk 'print $2'"

alias reset='clear && printf "e[3J"'

# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ZSH_THEME="robbyrussell"
ZSH_THEME="kolo"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
# plugins=(git)

source $ZSH/oh-my-zsh.sh

# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion

# iTerm
# CMD + D to split screen (left right)
# CMD + D + Shift to split screen (up down)
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"









share|improve this question


























    0














    # iTerm
    # CMD + D to split screen (left right)
    # CMD + D + Shift to split screen (up down)
    # Add Visual Studio Code (code)
    export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
    # Add Visual Studio Code (code)
    export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
    # Add Visual Studio Code (code)
    export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"


    I removed all except for 1, when I close and reopen iTerm2. It adds another line :(



    Full .zshrc file



    cat << EOF >> ~/.zshrc
    # Add Visual Studio Code (code)
    export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
    EOF

    export PATH="/usr/local/opt/node@8/bin:$PATH"
    export NODE_ENV
    export EDITOR='atom -w'i
    # export EDITOR='/usr/local/bin/atom'
    export TERM="xterm-256color"
    export ZSH=/Users/leongaban/.oh-my-zsh
    export GIT_EDITOR=vim

    # trade.io
    alias trade="projects/trade.io/"
    # alias tradefe="projects/trade.io/tradeio-front"
    alias tradefe="projects/trade.io/frontend"
    alias chrome="open /Applications/Google Chrome.app --args --disable-web-security --user-data-dir --ignore-certificate-errors"

    # heroku
    alias herokuprod="git push heroku master"
    # alias herokustag="git push heroku master"

    # personal
    alias leongaban="projects/leongaban/"
    alias gaban="projects/Gaban/"
    alias moon="projects/Futuratum/moon.holdings"
    alias moonio="projects/Futuratum/moonholdings.io"
    alias moonnode="projects/Futuratum/moon.node"

    alias futr="projects/Futuratum/"
    alias tuts="projects/tutorials/"
    alias udemy="projects/tutorials/udemy/"
    alias areact="projects/tutorials/wesbos/Advanced-React"

    # Configs
    alias zconfig="atom ~/.zshrc"
    alias ohmyzsh="atom ~/.oh-my-zsh"
    alias hconfig="atom ~/.hyper.js"
    alias gconfig="atom ~/.gitconfig"
    alias hosts="sudo atom /etc/hosts"

    # Yarn scripts
    alias yarnstart="yarn start-legacy"

    # Yarn jest tests
    alias ju="npm t -- --u"
    alias jw="yarn run test-jest:watch"
    alias jt="yarn jest test"
    alias jc="yarn run test-jest:coverage"

    alias myip="ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk 'print $2'"

    alias reset='clear && printf "e[3J"'

    # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
    # ZSH_THEME="robbyrussell"
    ZSH_THEME="kolo"

    # Would you like to use another custom folder than $ZSH/custom?
    # ZSH_CUSTOM=/path/to/new-custom-folder

    # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
    # Example format: plugins=(rails git textmate ruby lighthouse)
    # Add wisely, as too many plugins slow down shell startup.
    # plugins=(git)

    source $ZSH/oh-my-zsh.sh

    # ssh
    # export SSH_KEY_PATH="~/.ssh/rsa_id"

    export NVM_DIR="$HOME/.nvm"
    [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
    [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion

    # iTerm
    # CMD + D to split screen (left right)
    # CMD + D + Shift to split screen (up down)
    # Add Visual Studio Code (code)
    export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"









    share|improve this question
























      0












      0








      0







      # iTerm
      # CMD + D to split screen (left right)
      # CMD + D + Shift to split screen (up down)
      # Add Visual Studio Code (code)
      export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
      # Add Visual Studio Code (code)
      export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
      # Add Visual Studio Code (code)
      export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"


      I removed all except for 1, when I close and reopen iTerm2. It adds another line :(



      Full .zshrc file



      cat << EOF >> ~/.zshrc
      # Add Visual Studio Code (code)
      export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
      EOF

      export PATH="/usr/local/opt/node@8/bin:$PATH"
      export NODE_ENV
      export EDITOR='atom -w'i
      # export EDITOR='/usr/local/bin/atom'
      export TERM="xterm-256color"
      export ZSH=/Users/leongaban/.oh-my-zsh
      export GIT_EDITOR=vim

      # trade.io
      alias trade="projects/trade.io/"
      # alias tradefe="projects/trade.io/tradeio-front"
      alias tradefe="projects/trade.io/frontend"
      alias chrome="open /Applications/Google Chrome.app --args --disable-web-security --user-data-dir --ignore-certificate-errors"

      # heroku
      alias herokuprod="git push heroku master"
      # alias herokustag="git push heroku master"

      # personal
      alias leongaban="projects/leongaban/"
      alias gaban="projects/Gaban/"
      alias moon="projects/Futuratum/moon.holdings"
      alias moonio="projects/Futuratum/moonholdings.io"
      alias moonnode="projects/Futuratum/moon.node"

      alias futr="projects/Futuratum/"
      alias tuts="projects/tutorials/"
      alias udemy="projects/tutorials/udemy/"
      alias areact="projects/tutorials/wesbos/Advanced-React"

      # Configs
      alias zconfig="atom ~/.zshrc"
      alias ohmyzsh="atom ~/.oh-my-zsh"
      alias hconfig="atom ~/.hyper.js"
      alias gconfig="atom ~/.gitconfig"
      alias hosts="sudo atom /etc/hosts"

      # Yarn scripts
      alias yarnstart="yarn start-legacy"

      # Yarn jest tests
      alias ju="npm t -- --u"
      alias jw="yarn run test-jest:watch"
      alias jt="yarn jest test"
      alias jc="yarn run test-jest:coverage"

      alias myip="ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk 'print $2'"

      alias reset='clear && printf "e[3J"'

      # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
      # ZSH_THEME="robbyrussell"
      ZSH_THEME="kolo"

      # Would you like to use another custom folder than $ZSH/custom?
      # ZSH_CUSTOM=/path/to/new-custom-folder

      # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
      # Example format: plugins=(rails git textmate ruby lighthouse)
      # Add wisely, as too many plugins slow down shell startup.
      # plugins=(git)

      source $ZSH/oh-my-zsh.sh

      # ssh
      # export SSH_KEY_PATH="~/.ssh/rsa_id"

      export NVM_DIR="$HOME/.nvm"
      [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
      [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion

      # iTerm
      # CMD + D to split screen (left right)
      # CMD + D + Shift to split screen (up down)
      # Add Visual Studio Code (code)
      export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"









      share|improve this question













      # iTerm
      # CMD + D to split screen (left right)
      # CMD + D + Shift to split screen (up down)
      # Add Visual Studio Code (code)
      export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
      # Add Visual Studio Code (code)
      export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
      # Add Visual Studio Code (code)
      export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"


      I removed all except for 1, when I close and reopen iTerm2. It adds another line :(



      Full .zshrc file



      cat << EOF >> ~/.zshrc
      # Add Visual Studio Code (code)
      export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
      EOF

      export PATH="/usr/local/opt/node@8/bin:$PATH"
      export NODE_ENV
      export EDITOR='atom -w'i
      # export EDITOR='/usr/local/bin/atom'
      export TERM="xterm-256color"
      export ZSH=/Users/leongaban/.oh-my-zsh
      export GIT_EDITOR=vim

      # trade.io
      alias trade="projects/trade.io/"
      # alias tradefe="projects/trade.io/tradeio-front"
      alias tradefe="projects/trade.io/frontend"
      alias chrome="open /Applications/Google Chrome.app --args --disable-web-security --user-data-dir --ignore-certificate-errors"

      # heroku
      alias herokuprod="git push heroku master"
      # alias herokustag="git push heroku master"

      # personal
      alias leongaban="projects/leongaban/"
      alias gaban="projects/Gaban/"
      alias moon="projects/Futuratum/moon.holdings"
      alias moonio="projects/Futuratum/moonholdings.io"
      alias moonnode="projects/Futuratum/moon.node"

      alias futr="projects/Futuratum/"
      alias tuts="projects/tutorials/"
      alias udemy="projects/tutorials/udemy/"
      alias areact="projects/tutorials/wesbos/Advanced-React"

      # Configs
      alias zconfig="atom ~/.zshrc"
      alias ohmyzsh="atom ~/.oh-my-zsh"
      alias hconfig="atom ~/.hyper.js"
      alias gconfig="atom ~/.gitconfig"
      alias hosts="sudo atom /etc/hosts"

      # Yarn scripts
      alias yarnstart="yarn start-legacy"

      # Yarn jest tests
      alias ju="npm t -- --u"
      alias jw="yarn run test-jest:watch"
      alias jt="yarn jest test"
      alias jc="yarn run test-jest:coverage"

      alias myip="ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk 'print $2'"

      alias reset='clear && printf "e[3J"'

      # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
      # ZSH_THEME="robbyrussell"
      ZSH_THEME="kolo"

      # Would you like to use another custom folder than $ZSH/custom?
      # ZSH_CUSTOM=/path/to/new-custom-folder

      # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
      # Example format: plugins=(rails git textmate ruby lighthouse)
      # Add wisely, as too many plugins slow down shell startup.
      # plugins=(git)

      source $ZSH/oh-my-zsh.sh

      # ssh
      # export SSH_KEY_PATH="~/.ssh/rsa_id"

      export NVM_DIR="$HOME/.nvm"
      [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
      [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion

      # iTerm
      # CMD + D to split screen (left right)
      # CMD + D + Shift to split screen (up down)
      # Add Visual Studio Code (code)
      export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"






      terminal iterm2 oh-my-zsh vscode






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      Leon Gaban

      53561428




      53561428




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Sigh, just figured it out... Not sure why I put this here.



          cat << EOF >> ~/.zshrc
          # Add Visual Studio Code (code)
          export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
          EOF


          But removed it and all works.






          share|improve this answer




















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "3"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1387917%2feverytime-i-open-iterm-my-zshrc-file-gets-a-new-vscode-path-line%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Sigh, just figured it out... Not sure why I put this here.



            cat << EOF >> ~/.zshrc
            # Add Visual Studio Code (code)
            export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
            EOF


            But removed it and all works.






            share|improve this answer

























              0














              Sigh, just figured it out... Not sure why I put this here.



              cat << EOF >> ~/.zshrc
              # Add Visual Studio Code (code)
              export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
              EOF


              But removed it and all works.






              share|improve this answer























                0












                0








                0






                Sigh, just figured it out... Not sure why I put this here.



                cat << EOF >> ~/.zshrc
                # Add Visual Studio Code (code)
                export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
                EOF


                But removed it and all works.






                share|improve this answer












                Sigh, just figured it out... Not sure why I put this here.



                cat << EOF >> ~/.zshrc
                # Add Visual Studio Code (code)
                export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
                EOF


                But removed it and all works.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered yesterday









                Leon Gaban

                53561428




                53561428



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid …


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid …


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1387917%2feverytime-i-open-iterm-my-zshrc-file-gets-a-new-vscode-path-line%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Top Tejano songwriter Luis Silva dead of heart attack at 64

                    政党

                    天津地下鉄3号線