File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,13 @@ goto --owners --update
46
46
47
47
# Update the default dev directory
48
48
goto --path --update
49
+
50
+ # Jump to a directory and open in code
51
+ gotoc ajhenry/goto
49
52
```
50
53
54
+ > ` gotoc ` is the same functionality with the added benefit of opening in vscode.
55
+
51
56
## Installation
52
57
53
58
> You will also need [ the github cli] ( https://cli.github.com/ ) in order to list and clone repos
@@ -83,7 +88,7 @@ If that also fails, it will ask if you want to create it.
83
88
The following flags are available:
84
89
85
90
``` sh
86
- -> goto -h
91
+ -> goto -h
87
92
USAGE
88
93
$ goto [PATH] [-l] [-p] [-u] [-d] [-i] [-v] [-o]
89
94
Original file line number Diff line number Diff line change 1
1
export const gotoFunc = `
2
2
# Used for goto
3
3
goto() {
4
- goto-cli "$@" && cd $(cat ~/.goto/goto)
4
+ goto-cli "$@" && eval $(cat ~/.goto/goto)
5
5
}
6
- `
6
+ gotoc() {
7
+ goto "$@" && code .
8
+ }
9
+ `
You can’t perform that action at this time.
0 commit comments