Skip to content

Commit

Permalink
protoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mtaron committed Sep 19, 2023
1 parent 9771b7a commit dc350e6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
6 changes: 6 additions & 0 deletions external/vscode/keybindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,11 @@
{
"key": "alt+`",
"command": "workbench.action.toggleMaximizedPanel"
},
{
"key": "ctrl+k tab",
"command": "type",
"args": { "text": "\t" },
"when": "editorTextFocus"
}
]
15 changes: 12 additions & 3 deletions external/vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"azureFunctions.showProjectWarning": false,
"azureFunctions.showPythonVenvWarning": false,
"cfnLint.validateUsingJsonSchema": true,
"diffEditor.renderSideBySide": false,
"dotfiles.installCommand": "~/.local/share/chezmoi/install.sh",
"dotfiles.repository": "https://github.com/mtaron/dotfiles.git",
"dotfiles.targetPath": "~/.local/share/chezmoi",
Expand All @@ -17,7 +16,7 @@
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"extensions.ignoreRecommendations": true,
"files.autoSave": "afterDelay",
"files.autoSave": "onFocusChange",
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"git.autofetch": true,
Expand Down Expand Up @@ -52,10 +51,20 @@
"git.pullBeforeCheckout": true,
"terminal.integrated.smoothScrolling": true,
"markdown.validate.enabled": true,
"window.experimental.useSandbox": true,
"editor.formatOnType": true,
"shellcheck.customArgs": [
"--source-path=SCRIPTDIR",
"--external-sources"
],
"python.terminal.activateEnvironment": false,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"diffEditor.renderSideBySide": false,
"dotnetAcquisitionExtension.existingDotnetPath": [
{
"extensionId": "ms-dotnettools.csdevkit",
"path": "/usr/bin/dotnet"
}
]
}
19 changes: 19 additions & 0 deletions home/private_dot_config/private_zsh/zsh.d/install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,24 @@ install-git-credential-manager()
rm -rf "$tmp_dir"
}

# https://github.com/protocolbuffers/protobuf
install-protobuf-compiler()
{
local install_path="$XDG_DATA_HOME"/protoc
rm -rf "$install_path"

local tmp_dir=$(mktemp --directory)
gh release download \
--repo protocolbuffers/protobuf \
--pattern 'protoc-*-linux-x86_64.zip' \
--dir "$tmp_dir"
unzip -q -d "$install_path" "$tmp_dir"/protoc-*-linux-x86_64.zip

ln --symbolic --force "$install_path/bin/protoc" "$XDG_BIN_DIR/protoc"

rm -rf "$tmp_dir"
}

# https://github.com/microsoft/artifacts-credprovider#installation-on-linux-and-mac
install-nuget-credential-provider()
{
Expand Down Expand Up @@ -245,6 +263,7 @@ update-tools()
has mkcert && install-mkcert
has go && install-go
has func && install-azure-function-tools
has protoc && install-protobuf-compiler
has rye && rye self update
[[ -d "$XDG_DATA_HOME/NuGet/plugins" ]] && install-nuget-credential-provider
}
Expand Down

0 comments on commit dc350e6

Please sign in to comment.