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(){