diff --git a/.zshrc b/.zshrc index 94e68c2..7717ec9 100644 --- a/.zshrc +++ b/.zshrc @@ -172,21 +172,9 @@ DEBUG_PLUG="" plugin $zPlug loadet." done - 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 && cd $HOME/ && rm -r /tmp/has - } - 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 + if command_exists cowsay; then + cowsay -f art tux "$(uname -r)" + fi } _alias(){ @@ -514,6 +502,14 @@ _coding_() { } fi + + if command_exists bc; then + math() { + echo "$*" | bc -l + } + else + echo_error "No bc, so no math will work" + fi } # ─< rsync >──────────────────────────────────────────────────────────────────────────────── @@ -603,14 +599,6 @@ _tools_(){ fi } -if command_exists bc; then - math() { - echo "$*" | bc -l - } -else - echo_error "No bc, so no math will work" -fi - _environment(){ if command_exists nvim; then export EDITOR="nvim"