-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sourcing .zshrc is changing nvm node version to system node ignoring set defaults #1703
Comments
Can you share the rest of your |
```sh
export PATH="~/.yarn/bin:/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
Would you like to use another custom folder than $ZSH/custom?ZSH_CUSTOM=~/.dotfiles/custom See https://github.com/robbyrussell/oh-my-zsh/wiki/ThemesZSH_THEME="TheOne" plugins=() export ZSH=/Users/jonahmoses/.oh-my-zsh show contents of directory after cd-ing into itchpwd() { l } Colorsautoload -U colors Use vim as the visual editorexport VISUAL=vim Save a ton of historysetopt hist_ignore_all_dups inc_append_history FZF & RipGrep[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh fpath=(/usr/local/share/zsh-completions $fpath) source ~/.dotfiles/aliases.zsh source nvmexport NVM_DIR="$HOME/.nvm"
|
Thanks - what about |
```sh
setopt prompt_subst
autoload -Uz vcs_info zstyle ':vcs_info:' enable git precmd () { vcs_info }
|
```sh
# Other
alias v='vim'
alias vi='vim'
alias be='bundle exec'
alias bu='bundle update'
alias bi='bundle install'
alias reload='source ~/.dotfiles/.zshrc'
alias sane='stty sane'
alias ll='ls -al'
Movementalias ..='cd ..' #RipGrep Gitalias gh="git log --pretty=format:'%h - %ad (%ar) - [%an] : %s' --date=short --graph --since=5.months" Tmuxalias tns='tmux new -s' Spellingalias zues='zeus'
|
hmm, nothing strange there :-/ If from bash, you do |
My default shell is zsh so I'm never in bash land. However if I switch to bash with |
ok, so then in zsh prior to sourcing zshrc, if you do |
Either that or adding |
Thank you!...The PATH thing fixed it for me. Been struggling with this. |
I do not have a
.npmrc
and the following lines are in my.zshrc
file:export PATH="~/.yarn/bin:/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
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
The text was updated successfully, but these errors were encountered: