Compare commits

..

6 Commits

Author SHA1 Message Date
AJ ONeal
b3672e5412 ref: move shell integrations to their own functions 2023-11-21 13:31:36 -07:00
AJ ONeal
cb272101b3 ref: move 'webi --info' to its own function 2023-11-21 13:31:36 -07:00
AJ ONeal
68ec49b8e8 feat(completions): add --<option>s to the list 2023-11-21 13:31:36 -07:00
AJ ONeal
02bbecc561 feat(webi): save install options for shell completions 2023-11-21 13:31:35 -07:00
AJ ONeal
50f982f6e3 fix(zsh): must 'compinit' before 'compdef' 2023-11-21 19:53:21 +00:00
RubenRam
f2d7ef229e feat(webi): add webi init option
Add shell package completion for bash, zsh and fish
2023-11-21 19:53:19 +00:00
3 changed files with 6 additions and 6 deletions

View File

@@ -853,7 +853,7 @@ fn_envman_init_load_sh() { (
touch -a ~/.config/envman/PATH.env
touch -a ~/.config/envman/ENV.env
touch -a ~/.config/envman/alias.env
touch -a ~/.config/envman/function.sh
touch -a ~/.config/envman/function.env
# ENV first because we may use it in PATH
test -z "\${ENVMAN_LOAD:-}" && . ~/.config/envman/ENV.env
@@ -862,7 +862,7 @@ test -z "\${ENVMAN_LOAD:-}" && . ~/.config/envman/PATH.env
export ENVMAN_LOAD='loaded'
# function first because we may use it in alias
test -z "\${g_envman_load_sh:-}" && . ~/.config/envman/function.sh
test -z "\${g_envman_load_sh:-}" && . ~/.config/envman/function.env
test -z "\${g_envman_load_sh:-}" && . ~/.config/envman/alias.env
g_envman_load_sh='loaded'
@@ -918,14 +918,14 @@ fn_envman_init_load_fish() { (
touch -a ~/.config/envman/PATH.env
touch -a ~/.config/envman/ENV.env
touch -a ~/.config/envman/alias.env
touch -a ~/.config/envman/function.fish
touch -a ~/.config/envman/function.env
not set -q ENVMAN_LOAD; and source ~/.config/envman/ENV.env
not set -q ENVMAN_LOAD; and source ~/.config/envman/PATH.env
set -x ENVMAN_LOAD 'loaded'
not set -q g_envman_load_fish; and source ~/.config/envman/function.fish
not set -q g_envman_load_fish; and source ~/.config/envman/function.env
not set -q g_envman_load_fish; and source ~/.config/envman/alias.env
set -g g_envman_load_fish 'loaded'

View File

@@ -118,7 +118,7 @@ fn_polite_sudo() { (
# this is user interactive, ask the user,defaulting to yes
echo ""
#shellcheck disable=SC2005 # echo for newline
echo "$(t_attn 'Use sudo for the following? [Y/n]')"
echo "$(t_attn 'Use sudo for the following? [Y/n])')"
echo "${a_cmds}"
read -r b_yes < /dev/tty

View File

@@ -152,7 +152,7 @@ __webi_main() {
my_checksum="$(
fn_checksum
)"
my_version=v1.2.8
my_version=v1.2.0
printf "\e[35mwebi\e[32m %s\e[0m Copyright 2020+ AJ ONeal\n" "${my_version} (${my_checksum})"
printf " \e[36mhttps://webinstall.dev/webi\e[0m\n"
}