GithubHelp home page GithubHelp logo

dotfiles's Issues

git clone of oh-my-zsh repo failed

[➜] Checking oh-my-zsh...
[➜] Installing oh-my-zsh...
Cloning Oh My Zsh...
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
Error: git clone of oh-my-zsh repo failed

nvm install

Now all variables is setting. What will need to make:
1 Create a .nvm folder
2 Install nvm

Remove nvm and add volta

Use volta instead.

1 Edit ~/.bashrc (or other shell resource config) and remove the lines below:

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

2 Modify /init.sh to add install volta function

Add node prompt function to oh-my-zsh themes

Bureau Theme for example

# oh-my-zsh Bureau Theme

### NODE

ZSH_THEME_NODE_PROMPT_PREFIX="%B⬡%b "
ZSH_THEME_NODE_PROMPT_SUFFIX=""

function node_prompt_info() {
  local node_prompt=${$(node --version)#}
  echo "${ZSH_THEME_NODE_PROMPT_PREFIX}${node_prompt}${ZSH_THEME_NODE_PROMPT_SUFFIX}"
}

...

RPROMPT='$(node_prompt_info) $(bureau_git_prompt)'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.