From 7888e63f27f0614850a5cfbd6d90d6a70f09cb4e Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 18 Aug 2024 14:50:18 +0200 Subject: [PATCH] addet has --- .bashrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 4faa6eb..6eec74c 100644 --- a/.bashrc +++ b/.bashrc @@ -19,7 +19,6 @@ _defaults_() { set -o emacs # set -o vim - # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth @@ -211,8 +210,6 @@ _cli_qol_() { alias starwars="telnet -a telehack.com" fi - # ─< oh-my-posh >─────────────────────────────────────────────────────────────────────────── - # ─< oh-my-posh initialization >──────────────────────────────────────────────────────────── if command_exists oh-my-posh; then # eval "$(oh-my-posh init bash --config 'https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/amro.omp.json')" @@ -222,6 +219,14 @@ _cli_qol_() { curl -s https://ohmyposh.dev/install.sh | sudo bash -s -- -d /usr/bin/ fi + if ! command_exists has; then + $(git clone https://github.com/kdabir/has.git && cd has && sudo make install) + else + tools(){ + local pkgs="bash git curl nvim stow make npm php" + has $pkgs + } + fi [[ -f $HOME/.local/share/blesh/ble.sh ]] && . $HOME/.local/share/blesh/ble.sh }