diff --git a/basic/packages.txt b/basic/packages.txt index 88fc964..d5d1871 100644 --- a/basic/packages.txt +++ b/basic/packages.txt @@ -22,3 +22,4 @@ git ripgrep fd docker +man-db diff --git a/term/packages.txt b/term/packages.txt index 685dd3e..710eac6 100644 --- a/term/packages.txt +++ b/term/packages.txt @@ -43,4 +43,3 @@ opencode @npm eslint_d -vscode-js-debug diff --git a/term/setup.sh b/term/setup.sh index 6a3cd4d..32953ac 100755 --- a/term/setup.sh +++ b/term/setup.sh @@ -53,7 +53,9 @@ install_aur() { install_npm() { if ((${#npm_pkgs[@]})); then echo "==> Installiere globale npm-Pakete: ${npm_pkgs[*]}" - npm install -g "${npm_pkgs[@]}" + # Arch installiert npm nach /usr/lib/node_modules (root-owned), + # daher braucht der globale Install sudo. + sudo npm install -g "${npm_pkgs[@]}" fi } @@ -84,8 +86,12 @@ install_tmuxifier() { add_yazi_git_plugin() { if command -v yazi >/dev/null 2>&1 && command -v ya >/dev/null 2>&1; then - echo "Fuege yazi git-Plugin hinzu ..." - ya pkg add yazi-rs/plugins:git + if ya pkg list 2>/dev/null | grep -q 'yazi-rs/plugins:git'; then + echo "yazi git-Plugin bereits installiert; fahre fort." + else + echo "Fuege yazi git-Plugin hinzu ..." + ya pkg add yazi-rs/plugins:git + fi fi }