Skip to content

Commit f01fd47

Browse files
committed
AUTO: update system configs
1 parent 2c02837 commit f01fd47

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

bin/_gpc/_ssh

+18-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ source "$SCRIPT_PATH/_env"
55

66
WORKSPACE_ID=""
77
REPO_REMOTE_DIR=""
8-
SELECTED_REPO="$1"
8+
SELECTED_REPO=""
9+
ZED_SESSION=""
10+
911
_get_repo() {
1012
if [ -z "$SELECTED_REPO" ]; then
1113
GITPOD_WORKSPACES=$("$SCRIPT_PATH/gitpod" workspace list | awk 'NR>1 {print $2}' | sort -u)
@@ -33,17 +35,24 @@ create_workspace() {
3335
REPO_REMOTE_DIR="/workspace/$(echo "$SELECTED_REPO" | cut -d '/' -f 2-2)"
3436
}
3537

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+
3650
_get_repo
3751
create_workspace
3852

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
4756

4857
"$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'"
4958
# "$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'"

programs/vim/config/coc-package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"dependencies": {
33
"coc-diagnostic": ">=0.24.1",
4-
"coc-go": ">=1.3.33",
4+
"coc-go": ">=1.3.35",
55
"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"
1313
},
1414
"disabled": [],
1515
"locked": [],
1616
"lastUpdate": 1676357997572
17-
}
17+
}

0 commit comments

Comments
 (0)