File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
- # Git worktree switcher:zap :
1
+ # Git worktree switcher :zap :
2
2
Switch between git worktrees with speed. :zap :
3
3
4
4
<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
25
25
sudo cp completions/wt_completion /etc/bash_completion.d
26
26
```
27
27
28
+ Add this to the end of your ` ~/.bashrc ` :
29
+ ``` bash
30
+ eval " $( command wt init bash) "
31
+ ```
32
+
28
33
** For ZSH**
29
34
> Note: completion file for zsh has ` _ ` prefix
30
35
@@ -42,10 +47,21 @@ sudo cp completions/_wt_completion <one-of-$fpath>
42
47
exec zsh
43
48
```
44
49
50
+ Add this to the end of your ` ~/.zshrc ` :
51
+ ``` bash
52
+ eval " $( command wt init zsh) "
53
+ ```
54
+
45
55
** For Fish**
46
56
``` bash
47
57
cp completions/wt.fish ~ /.config/fish/completions
48
58
```
59
+
60
+ Add this to the end of your ` ~/.config/fish/config.fish ` :
61
+ ``` bash
62
+ command wt init fish | source
63
+ ```
64
+
49
65
---
50
66
Tab autocompletion works for switching between your worktrees.
51
67
``` bash
You can’t perform that action at this time.
0 commit comments