Skip to content

Commit

Permalink
Update readme's installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusauler committed Apr 23, 2024
1 parent b4f0bf6 commit b1ce5de
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Git worktree switcher:zap:
# Git worktree switcher :zap:
Switch between git worktrees with speed. :zap:

<img src = "https://i.imgur.com/nPdneDT.gif" width="600" alt="demo of switching between git worktrees" />
Expand All @@ -25,6 +25,11 @@ $ sudo cp wt /usr/local/bin
sudo cp completions/wt_completion /etc/bash_completion.d
```

Add this to the end of your `~/.bashrc`:
```bash
eval "$(command wt init bash)"
```

**For ZSH**
> Note: completion file for zsh has `_` prefix
Expand All @@ -42,10 +47,21 @@ sudo cp completions/_wt_completion <one-of-$fpath>
exec zsh
```

Add this to the end of your `~/.zshrc`:
```bash
eval "$(command wt init zsh)"
```

**For Fish**
```bash
cp completions/wt.fish ~/.config/fish/completions
```

Add this to the end of your `~/.config/fish/config.fish`:
```bash
command wt init fish | source
```

---
Tab autocompletion works for switching between your worktrees.
```bash
Expand Down

0 comments on commit b1ce5de

Please sign in to comment.