From 781f2ef7a2ab4e029b09ecc5110d35d9b0124b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Mon, 4 Sep 2023 11:11:19 +0200 Subject: [PATCH] Added the install_marksman MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .local/bin/Update-pkg | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.local/bin/Update-pkg b/.local/bin/Update-pkg index 7c7a4fb..3df7a7a 100755 --- a/.local/bin/Update-pkg +++ b/.local/bin/Update-pkg @@ -112,6 +112,16 @@ function install_shellcheck() { fi } +function install_marksman() { + if [[ "$(uname)" == "Darwin" ]]; then + brew install marksman -q + else + wget https://github.com/artempyanykh/marksman/releases/latest/download/marksman-linux-x64 -O $HOME/.local/bin/marksman + chmod +x $HOME/.local/bin/marksman + fi + +} + function install_go() { # Install the golang if [[ "$(uname)" == "Darwin" ]]; then @@ -221,6 +231,7 @@ function main() { command_start install_bash-language-server command_start install_yaml-language-server command_start install_ansible-language-server + command_start install_marksman command_start install_shfmt command_start install_shellcheck command_start install_gopls