Everytime I open iTerm my .zshrc file gets a new vscode Path line
# 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
add a comment |Â
# 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
add a comment |Â
# 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
# 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
terminal iterm2 oh-my-zsh vscode
asked yesterday
Leon Gaban
53561428
53561428
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
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.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered yesterday
Leon Gaban
53561428
53561428
add a comment |Â
add a comment |Â
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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