Compare commits

..

No commits in common. "e36b04aaa71cef0469f9920c76b8e3c9e0836652" and "4e928c2306992fa71be80917ff87e81f49c7ca0d" have entirely different histories.

2 changed files with 6 additions and 10 deletions

View File

@ -75,12 +75,11 @@ xbanish
) )
install() { install() {
local package="$1" if pacman -Qi "$1" &> /dev/null; then
if pacman -Qi "$package" &> /dev/null; then echo "$1 is already installed"
echo "$package is already installed"
else else
echo "Installing " "$package" echo "Installing " "$1"
sudo pacman -S --noconfirm --needed "$package" sudo pacman -S --noconfirm --needed "$1"
fi fi
} }
@ -180,15 +179,13 @@ setup_docker() {
} }
announce() { announce() {
local message="$1"
echo " " echo " "
echo "[dots] $message" echo "[dots] $1"
echo " " echo " "
} }
confirm() { confirm() {
local question="$1" read -r -p "[dots] $1? [y/N]" -n 1
read -r -p "[dots] $question? [y/N]" -n 1
case "$REPLY" in y|Y ) "$2";; * ) echo "Skipping"; esac case "$REPLY" in y|Y ) "$2";; * ) echo "Skipping"; esac
} }

View File

@ -1 +0,0 @@
set -g status-style bg=default