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 :
22Switch 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
2525sudo 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>
4247exec 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
4757cp 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---
5066Tab autocompletion works for switching between your worktrees.
5167``` bash
You can’t perform that action at this time.
0 commit comments