mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-20 00:47:45 +08:00
Compare commits
3 Commits
bc9fe7423f
...
0e57142729
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e57142729 | ||
|
|
40b013f5f1 | ||
|
|
f9a2d8cae3 |
@ -3,11 +3,12 @@ function zsh_stats() {
|
||||
}
|
||||
|
||||
function uninstall_oh_my_zsh() {
|
||||
env ZSH=$ZSH sh $ZSH/tools/uninstall.sh
|
||||
env ZSH="$ZSH" sh "$ZSH/tools/uninstall.sh"
|
||||
}
|
||||
|
||||
function upgrade_oh_my_zsh() {
|
||||
env ZSH=$ZSH sh $ZSH/tools/upgrade.sh
|
||||
env ZSH="$ZSH" sh "$ZSH/tools/upgrade.sh"
|
||||
rm -rf "$ZSH/log/update.lock"
|
||||
}
|
||||
|
||||
function take() {
|
||||
|
||||
@ -8,6 +8,15 @@ To start using it, add the `vscode` plugin to your `plugins` array in `~/.zshrc`
|
||||
plugins=(... vscode)
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
To use VS Code in the terminal **in macOS**, first you need to install the `code` command in the PATH,
|
||||
otherwise you might receive this message: `zsh: command not found: code`.
|
||||
|
||||
[As the docs say](https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line), open
|
||||
the Command Palette via (F1 or ⇧⌘P) and type shell command to find the Shell Command:
|
||||
> Install 'code' command in PATH
|
||||
|
||||
## VS Code Insiders
|
||||
|
||||
🍏 **If you are only using [VS Code Insiders](https://code.visualstudio.com/insiders/), the plugin will automatically bind to your Insiders installation.**
|
||||
|
||||
@ -129,10 +129,9 @@ setup_zshrc() {
|
||||
|
||||
echo "${GREEN}Using the Oh My Zsh template file and adding it to ~/.zshrc.${RESET}"
|
||||
|
||||
cp "$ZSH/templates/zshrc.zsh-template" ~/.zshrc
|
||||
sed "/^export ZSH=/ c\\
|
||||
export ZSH=\"$ZSH\"
|
||||
" ~/.zshrc > ~/.zshrc-omztemp
|
||||
" "$ZSH/templates/zshrc.zsh-template" > ~/.zshrc-omztemp
|
||||
mv -f ~/.zshrc-omztemp ~/.zshrc
|
||||
|
||||
echo
|
||||
|
||||
Loading…
Reference in New Issue
Block a user