macOS安裝與移除NVM

摘要 NVM(Node Version Manager),是一款Node.js的管理套件,可以透過NVM管理不同的Node.js版本,也可以隨時切換到其它版本。 安裝NVM NVM官方建議直接使用cURL安裝或更新 nvm,雖說在macOS環境下一般都建議使用Homebrew來安裝,但安裝完後會有許多坑,因此我們就照官方建議來做吧! ...

May 28, 2020 · 2 分鐘 · Byte4Cat

Visual Studio Code : command not found

摘要 在Terminal中使用VScode中自帶的code函數時,出現錯誤如下: 1 command not found code 除錯 確保已將Visual Studio Code應用程式放到Applications文件夾中,否則 VS code 重新啟動後,您將不得不再次執行此過程 接下來打開Visual Studio Code,透過**(⇧⌘P)**打開面板然後輸入以找到Shell命令:shell command 選擇 Install ‘code’ command in PATH ...

May 28, 2020 · 1 分鐘 · Byte4Cat

安裝zsh主題powerline

成果 zsh settings Edit .zshrc 1 vim ~/.zshrc Download theme 1 git clone https://github.com/jeremyFreeAgent/oh-my-zsh-powerline-theme.git Go to dir 1 cd ./oh-my-zsh-powerline-theme Install theme 1 ./install_in_omz.sh Theme conf in file “.zshrc” 1 2 3 4 5 ZSH_THEME="powerline" POWERLINE_HIDE_HOST_NAME="true" POWERLINE_DISABLE_RPOMPT="true" POWERLINE_FULL_CURRENT_PATH="true" POWERLINE_PATH="short" Install zsh-completions 1 brew install zsh-completions Install zsh-autosuggestions ...

May 27, 2020 · 1 分鐘 · Byte4Cat

在macOS安裝ZSH

安裝概覽: Install Homebrew Install zsh Switch default shell to zsh Install oh-my-zsh Edit setting 安裝Homebrew Install Homebrew 1 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 安裝zsh 1 brew install zsh Confirm the installation 1 zsh --version 切換預設shell至zsh 1 sudo sh -c "echo $(which zsh) >> /etc/shells" 1 chsh -s $(which zsh) Restart terminal 1 echo $SHELL if success you’ll see: 1 /usr/local/bin/zsh 安裝oh-my-zsh 1 git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh Copy oh-my-zsh template to zshrc ...

May 27, 2020 · 1 分鐘 · Byte4Cat