chore(scripts): tweaks to dfm and msgr

This commit is contained in:
2023-09-28 22:39:25 +03:00
parent ced09160ab
commit b1a7932b72
2 changed files with 20 additions and 15 deletions

View File

@@ -51,6 +51,8 @@ function section_install
case "$1" in case "$1" in
all) all)
msgr msg "Starting to install all and reloading configurations..."
x-load-configs
$0 install macos $0 install macos
$0 install fonts $0 install fonts
$0 install antigen $0 install antigen
@@ -69,6 +71,9 @@ function section_install
$0 install npm $0 install npm
$0 install ntfy $0 install ntfy
$0 install z $0 install z
msgr msg "Reloading configurations again..."
x-load-configs
msgr yay "All done!"
;; ;;
antigen) antigen)
curl -sSfL git.io/antigen -o "$DOTFILES/local/bin/antigen.zsh" \ curl -sSfL git.io/antigen -o "$DOTFILES/local/bin/antigen.zsh" \

View File

@@ -5,8 +5,8 @@
# Modified from https://stackoverflow.com/a/28776166 # Modified from https://stackoverflow.com/a/28776166
( (
[[ -n $ZSH_VERSION && $ZSH_EVAL_CONTEXT =~ :file$ ]] || \ [[ -n $ZSH_VERSION && $ZSH_EVAL_CONTEXT =~ :file$ ]] \
[[ -n $BASH_VERSION ]] && (return 0 2>/dev/null) || [[ -n $BASH_VERSION ]] && (return 0 2> /dev/null)
) && sourced=1 || sourced=0 ) && sourced=1 || sourced=0
# ╭──────────────────────────────────────────────────────────╮ # ╭──────────────────────────────────────────────────────────╮
@@ -177,19 +177,19 @@ ask()
function __tests() function __tests()
{ {
msg "[ msg ]" msg "[ msg ]"
msg_done "[ msg_done ]" msg_done "[ done ]"
msg_done_suffix "[ msg_done_suffix ]" && echo " ^-- (msg_done_suffix)" msg_done_suffix "[ done_suffix ]" && echo " ^-- (done_suffix)"
msg_err "[ msg_err ]" msg_err "[ err ]"
msg_nested "[ msg_nested ]" msg_nested "[ nested ]"
msg_nested_done "[ msg_nested_done ]" msg_nested_done "[ nested_done ]"
msg_ok "[ msg_ok ]" msg_ok "[ ok ]"
msg_prompt "[ msg_prompt ]" msg_prompt "[ prompt ]"
msg_prompt_done "[ msg_prompt_done ]" msg_prompt_done "[ prompt_done ]"
msg_run "[ msg_run ]" "[ second_param ]" msg_run "[ run ]" "[ second_param ]"
msg_run_done "[ msg_run_done ]" "[ second_param ]" msg_run_done "[ run_done ]" "[ second_param ]"
msg_warn "[ msg_warn ]" msg_warn "[ warn ]"
msg_yay "[ msg_yay ]" msg_yay "[ yay ]"
msg_yay_done "[ msg_yay_done ]" msg_yay_done "[ yay_done ]"
} }
function usage() function usage()