Tianhe Gao

使用 xwmx/nb

安装

1    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
2    export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
3    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
4    nvm install --lts
5    npm install -g nb.sh
6    sudo "$(which nb)" completions install # install Bash and Zsh completion scripts (recommended)

用法

 1    nb add
 2    nb <url>
 3    nb edit <id>
 4    nb show <id>
 5    nb open <id>
 6    nb list
 7    nb search <query>
 8    nb browse
 9    nb notebooks add <name>
10    nb settings
11    nb help

用途

  • 命令行记笔记、为链接加书签、支持 Backlink
  • 可同步至 GitHub,备份方便

ref:

  1. https://github.com/xwmx/nb
  2. https://xwmx.github.io/nb/
  3. https://github.com/nvm-sh/nvm#installing-and-updating

No notes link to this note

Welcome to tell me your thoughts via "email"
UP