From 079f41f13131ae3075e7357fcd06690508ba08ac Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 24 Aug 2024 22:15:46 +0200 Subject: [PATCH] some breaking changes? --- .zshrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.zshrc b/.zshrc index 88c7cd3..a36bcdb 100644 --- a/.zshrc +++ b/.zshrc @@ -79,6 +79,21 @@ _init (){ local zAutosg="$zconf/autosuggestions/zsh-autosuggestions.zsh" [[ -f "$zAutosg" ]] && . $zAutosg + p_has() { + if ! command_exists has; then + inst_has() { + git clone https://github.com/kdabir/has.git /tmp/has && cd /tmp/has && sudo make install + } + echo_info "Installing has" + inst_has >/dev/null 2>&1 + else + tools() { + local pkgs="bash zsh git curl make cmake gcc g++ rg docker composer node npm php jre python3 go cargo" + has $pkgs + } + fi + } + p_has } _alias(){