diff --git a/install.zsh b/install.zsh index f3d838d..42dd71d 100755 --- a/install.zsh +++ b/install.zsh @@ -42,7 +42,7 @@ for prog in $@; do fi done if [[ -e $install_path/${prog:t} && ! $force ]]; then - error "$prog already exists at $install_path. Skipping." + warning "$prog already exists at $install_path. Skipping." else ln -fsr $prog $install_path fi diff --git a/lib/common.zsh b/lib/common.zsh index 119568f..e589b12 100644 --- a/lib/common.zsh +++ b/lib/common.zsh @@ -1,6 +1,7 @@ autoload -Uz colors && colors local c_fail="${fg_bold[red]}✘$reset_color" +local c_warn="${fg_bold[yellow]}⚠$reset_color" local c_success="${fg_bold[green]}✔$reset_color" check() { @@ -16,8 +17,10 @@ result() { } fail() { result $c_fail $@ } +warn() { result $c_warn $@ } succeed() { result $c_success $@ } error() { echo -n " "; fail $@ } +warning() { echo -n " "; warn $@ } depend() { local missing