File tree 2 files changed +27
-18
lines changed
2 files changed +27
-18
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ source "$SCRIPT_PATH/_env"
5
5
6
6
WORKSPACE_ID=" "
7
7
REPO_REMOTE_DIR=" "
8
- SELECTED_REPO=" $1 "
8
+ SELECTED_REPO=" "
9
+ ZED_SESSION=" "
10
+
9
11
_get_repo () {
10
12
if [ -z " $SELECTED_REPO " ]; then
11
13
GITPOD_WORKSPACES=$( " $SCRIPT_PATH /gitpod" workspace list | awk ' NR>1 {print $2}' | sort -u)
@@ -33,17 +35,24 @@ create_workspace() {
33
35
REPO_REMOTE_DIR=" /workspace/$( echo " $SELECTED_REPO " | cut -d ' /' -f 2-2) "
34
36
}
35
37
38
+ while [ " $1 " != " " ]; do
39
+ case $1 in
40
+ -z | --zed)
41
+ ZED_SESSION=" true"
42
+ ;;
43
+ * )
44
+ SELECTED_REPO=" $1 "
45
+ ;;
46
+ esac
47
+ shift
48
+ done
49
+
36
50
_get_repo
37
51
create_workspace
38
52
39
- while [ " $1 " != " " ]; do
40
- case $1 in
41
- -z | --zed )
42
- zed " ssh://$WORKSPACE_ID @$WORKSPACE_ID .ssh.ws.$GITPOD_DOMAIN /$REPO_REMOTE_DIR "
43
- ;;
44
- esac
45
- shift
46
- done
53
+ if [ -n " $ZED_SESSION " ]; then
54
+ zed " ssh://$WORKSPACE_ID @$WORKSPACE_ID .ssh.ws.$GITPOD_DOMAIN /$REPO_REMOTE_DIR "
55
+ fi
47
56
48
57
" $SCRIPT_PATH /gitpod" workspace ssh " $WORKSPACE_ID " -- -t " sh -c 'cd $REPO_REMOTE_DIR ; if command -v zellij >/dev/null ; then exec zellij; elif command -v fish >/dev/null; then exec fish -li; else exec \$ SHELL -li; fi'"
49
58
# "$SCRIPT_PATH/gitpod" workspace ssh "$WORKSPACE_ID" -- -t "sh -c 'gp timeout extend; if which fish >/dev/null ; then exec fish -li; else exec \$SHELL -li; fi'"
Original file line number Diff line number Diff line change 1
1
{
2
2
"dependencies" : {
3
3
"coc-diagnostic" : " >=0.24.1" ,
4
- "coc-go" : " >=1.3.33 " ,
4
+ "coc-go" : " >=1.3.35 " ,
5
5
"coc-json" : " >=1.9.2" ,
6
- "coc-markdownlint" : " >=1.33 .0" ,
7
- "coc-prettier" : " >=9.3.2 " ,
8
- "coc-sh" : " >=1.2.2 " ,
9
- "coc-yaml" : " >=1.9.0 " ,
10
- "coc-rust-analyzer" : " >=0.75.1 " ,
11
- "@yaegassy/coc-ruff" : " >=0.6.3 " ,
12
- "coc-pyright" : " >=1.1.351 "
6
+ "coc-markdownlint" : " >=1.36 .0" ,
7
+ "coc-prettier" : " >=11.0.0 " ,
8
+ "coc-sh" : " >=1.2.4 " ,
9
+ "coc-yaml" : " >=1.9.1 " ,
10
+ "coc-rust-analyzer" : " >=0.81.0 " ,
11
+ "@yaegassy/coc-ruff" : " >=0.8.0 " ,
12
+ "coc-pyright" : " >=1.1.395 "
13
13
},
14
14
"disabled" : [],
15
15
"locked" : [],
16
16
"lastUpdate" : 1676357997572
17
- }
17
+ }
You can’t perform that action at this time.
0 commit comments