Skip to content

Commit 5781b8e

Browse files
committed
update: quick shell block creation
1 parent 19bec66 commit 5781b8e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/snippets/source/weapon/weapon.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"psql login": {
1717
"prefix": "psql",
1818
"body": [
19-
"psql -h ${1:\\$RHOST} -U \"${2:\\$USER}\" ${3:\\$DATABASE} ${0}"
19+
"PGPASSWORD='$1' psql -h ${2:\\$RHOST} -U \"${3:\\$USER}\" ${4:\\$DATABASE} $0"
2020
],
2121
"description": "login to psql as postgres user"
2222
},
@@ -56,5 +56,14 @@
5656
"```"
5757
],
5858
"description": "host information"
59+
},
60+
"shell block creation": {
61+
"prefix": "```sh",
62+
"body": [
63+
"```sh",
64+
"$0",
65+
"```"
66+
],
67+
"description": "shell block"
5968
}
6069
}

0 commit comments

Comments
 (0)