Option -s
-option --nodistract (ou -n) pour exécuter les scripts sans interaction. -option -s 'script' pour exécuter 1 seul script (i.e -s homebrew, -s node, -s pip...)
This commit is contained in:
@@ -16,7 +16,7 @@ display_info=true
|
||||
declare -a do_not_update=('')
|
||||
|
||||
# No distract mode (no user interaction)
|
||||
[[ $@ =~ "--nodistract" ]] && no_distract=true || no_distract=false
|
||||
[[ $@ =~ "-nodistract" || $@ =~ "-n" ]] && no_distract=true || no_distract=false
|
||||
|
||||
#
|
||||
###############################################################################################
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# https://guides.rubygems.org/what-is-a-gem/
|
||||
|
||||
# No distract mode
|
||||
[[ $@ =~ "--nodistract" ]] && no_distract=true || no_distract=false
|
||||
[[ $@ =~ "-nodistract" || $@ =~ "-n" ]] && no_distract=true || no_distract=false
|
||||
|
||||
italic="\033[3m"
|
||||
underline="\033[4m"
|
||||
|
||||
@@ -15,7 +15,8 @@ display_info=true
|
||||
declare -a cask_to_not_update=()
|
||||
|
||||
# No distract mode (no user interaction)(Casks with 'latest' version number won't be updated)
|
||||
[[ $@ =~ "--nodistract" ]] && no_distract=true || no_distract=false
|
||||
#[[ $@ =~ "--nodistract" ]] && no_distract=true || no_distract=false
|
||||
[[ $@ =~ "-nodistract" || $@ =~ "-n" ]] && no_distract=true || no_distract=false
|
||||
|
||||
# Some Casks have auto_updates true or version :latest. Homebrew Cask cannot track versions of those apps.
|
||||
# 'latest=true' force Homebrew to update those apps.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# https://github.com/welcoMattic/kymsu
|
||||
|
||||
# No distract mode (no user interaction)
|
||||
[[ $@ =~ "--nodistract" ]] && no_distract=true || no_distract=false
|
||||
[[ $@ =~ "-nodistract" || $@ =~ "-n" ]] && no_distract=true || no_distract=false
|
||||
|
||||
testing=1
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ display_info=true
|
||||
|
||||
# No distract mode (no user interaction)
|
||||
|
||||
[[ $@ =~ "--nodistract" ]] && no_distract=true || no_distract=false
|
||||
[[ $@ =~ "-nodistract" || $@ =~ "-n" ]] && no_distract=true || no_distract=false
|
||||
|
||||
# Set ls_color to '' for output nvm list in default colors, else '--no-colors'
|
||||
# ls_color='--no-colors'
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
display_info=true
|
||||
|
||||
# No distract mode (no user interaction)
|
||||
[[ $@ =~ "--nodistract" ]] && no_distract=true || no_distract=false
|
||||
[[ $@ =~ "-nodistract" || $@ =~ "-n" ]] && no_distract=true || no_distract=false
|
||||
|
||||
# Also add module for prevent to update it.
|
||||
declare -a do_not_update=('')
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
display_info=true
|
||||
|
||||
# No distract mode (no user interaction)
|
||||
[[ $@ =~ "--nodistract" ]] && no_distract=true || no_distract=false
|
||||
[[ $@ =~ "-nodistract" || $@ =~ "-n" ]] && no_distract=true || no_distract=false
|
||||
|
||||
# Display dependancies on updated pakages / casks
|
||||
#[[ $@ =~ "--depend" ]] && display_depend=false || display_depend=true
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# https://github.com/welcoMattic/kymsu
|
||||
|
||||
# No distract mode (no user interaction)
|
||||
[[ $@ =~ "--nodistract" ]] && no_distract=true || no_distract=false
|
||||
[[ $@ =~ "-nodistract" || $@ =~ "-n" ]] && no_distract=true || no_distract=false
|
||||
|
||||
# Upgrade --include-injected
|
||||
injected=true
|
||||
@@ -53,7 +53,7 @@ pipx-outdated() {
|
||||
done < <( pipx list | grep -o 'package.*,' | tr -d ',' | cut -d ' ' -f 2- )
|
||||
}
|
||||
|
||||
|
||||
# https://github.com/avantrec/soco-cli/blob/master/CHANGELOG.txt
|
||||
|
||||
pipx-outdated
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@ admin=false
|
||||
#add module to do_not_update array
|
||||
declare -a do_not_update=()
|
||||
|
||||
#[[ $@ =~ "-nodistract" || $@ =~ "-n" ]] && no_distract=true || no_distract=false
|
||||
|
||||
if [[ $1 == "--nodistract" ]] || [[ $no_distract == true ]]; then
|
||||
no_distract=true
|
||||
prompt=
|
||||
|
||||
Reference in New Issue
Block a user