Skip to content

Commit 9c6fef8

Browse files
committed
Update readme's installation instructions
1 parent 7698679 commit 9c6fef8

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Git worktree switcher:zap:
1+
# Git worktree switcher :zap:
22
Switch between git worktrees with speed. :zap:
33

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

28+
Add this to the end of your `~/.bashrc`:
29+
```bash
30+
eval "$(command wt init bash)"
31+
```
32+
2833
**For ZSH**
2934
> Note: completion file for zsh has `_` prefix
3035
@@ -42,10 +47,21 @@ sudo cp completions/_wt_completion <one-of-$fpath>
4247
exec zsh
4348
```
4449

50+
Add this to the end of your `~/.zshrc`:
51+
```bash
52+
eval "$(command wt init zsh)"
53+
```
54+
4555
**For Fish**
4656
```bash
4757
cp completions/wt.fish ~/.config/fish/completions
4858
```
59+
60+
Add this to the end of your `~/.config/fish/config.fish`:
61+
```bash
62+
command wt init fish | source
63+
```
64+
4965
---
5066
Tab autocompletion works for switching between your worktrees.
5167
```bash

0 commit comments

Comments
 (0)