File tree Expand file tree Collapse file tree 5 files changed +21
-13
lines changed Expand file tree Collapse file tree 5 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 11# HISTORY
22
3+ - v20250616
4+ - improved detector of `$CD` in orb vm
5+ - improved `debug_info`
6+ - improved `lazy-loader`
7+ - added `in_orb`, `path_in_orb_host` for orbstack
8+ - add golang helper `gob` as a lazy command
9+ - removed bash.config, change it to a link
10+
311- v20250609
412 - add `ii`, `colortabletruecolor`
513 - update `debug_info`
Original file line number Diff line number Diff line change 88#
99# bash.sh:
1010# Standard Template for bash/zsh developing.
11- # Version: v20250609
11+ # Version: v20250616
1212# License: MIT
1313# Site: https://github/hedzr/bash.sh
1414#
@@ -106,7 +106,7 @@ _my_main_do_sth() {
106106
107107# #######################################################
108108
109- # ### HZ Tail BEGIN #### v20250609 ####
109+ # ### HZ Tail BEGIN #### v20250616 ####
110110in_debug () { (( $DEBUG )) ; }
111111in_provisioning () { (( $PROVISIONING )) ; } # # return exit status as true if $PROVISIONING is not equal to 0
112112is_root () { [ " $( id -u) " = " 0" ]; }
@@ -724,7 +724,7 @@ main_do_sth() {
724724 fi
725725 (( ${HAS_END:- 0} )) && { debug_begin && echo -n ' Success!' && debug_end; } || return $res_ # { [ $# -eq 0 ] && :; }
726726}
727- BASH_SH_VERSION=v20250609
727+ BASH_SH_VERSION=v20250616
728728DEBUG=${DEBUG:- 0}
729729# trans_readlink() { DIR="${1%/*}" && (cd $DIR && pwd -P); }
730730# is_darwin && realpathx() { [[ $1 == /* ]] && echo "$1" || { DIR="${1%/*}" && DIR=$(cd $DIR && pwd -P) && echo "$DIR/$(basename $1)"; }; } || realpathx() { readlink -f $*; }
@@ -734,4 +734,4 @@ in_sourcing && {
734734if_vagrant && [ " $SCRIPT " == " /tmp/vagrant-shell" ] && { [ -d $CD /ops.d ] || CD=/vagrant/bin; }
735735[ -L " $SCRIPT " ] && debug linked script found && SCRIPT=$( realpathx " $SCRIPT " ) && CD=$( dirname " $SCRIPT " )
736736in_sourcing || main_do_sth " $@ "
737- # ### HZ Tail END #### v20250609 ####
737+ # ### HZ Tail END #### v20250616 ####
Original file line number Diff line number Diff line change 88#
99# bash.sh:
1010# Standard Template for bash/zsh developing.
11- # Version: v20250609
11+ # Version: v20250616
1212# License: MIT
1313# Site: https://github.com/hedzr/bash.sh
1414#
@@ -252,7 +252,7 @@ _bash_sh_load_env_files() {
252252
253253# #######################################################
254254
255- # ### HZ Tail BEGIN #### v20250609 ####
255+ # ### HZ Tail BEGIN #### v20250616 ####
256256in_debug () { (( $DEBUG )) ; }
257257in_provisioning () { (( $PROVISIONING )) ; } # # return exit status as true if $PROVISIONING is not equal to 0
258258is_root () { [ " $( id -u) " = " 0" ]; }
@@ -1224,7 +1224,7 @@ main_do_sth() {
12241224 # disabling this logic is still simple by defining HAS_END=1.
12251225 (( ${HAS_END:- 0} )) && { debug_begin && echo -n ' Success!' && debug_end; } || return $result_code # { [ $# -eq 0 ] && :; }
12261226}
1227- BASH_SH_VERSION=v20250609
1227+ BASH_SH_VERSION=v20250616
12281228DEBUG=${DEBUG:- 0}
12291229PROVISIONING=${PROVISIONING:- 0}
12301230# Instantly aliases cannot work in many cases such as conditional
@@ -1253,4 +1253,4 @@ path_in_orb_host "$0" && : || { [ -L "$SCRIPT" ] && debug "$(safety "linked scri
12531253# CD=$(cd `dirname "$0"`;pwd)
12541254# It will open a sub-shell to print the folder name of the running shell-script.
12551255in_sourcing && _bash_sh_load_import_files || main_do_sth " $@ "
1256- # ### HZ Tail END #### v20250609 ####
1256+ # ### HZ Tail END #### v20250616 ####
Original file line number Diff line number Diff line change 88#
99# bash.sh:
1010# Standard Template for bash/zsh developing.
11- # Version: v20250609
11+ # Version: v20250616
1212# License: MIT
1313# Site: https://github.com/hedzr/bash.sh
1414#
@@ -252,7 +252,7 @@ _bash_sh_load_env_files() {
252252
253253# #######################################################
254254
255- # ### HZ Tail BEGIN #### v20250609 ####
255+ # ### HZ Tail BEGIN #### v20250616 ####
256256in_debug () { (( $DEBUG )) ; }
257257in_provisioning () { (( $PROVISIONING )) ; } # # return exit status as true if $PROVISIONING is not equal to 0
258258is_root () { [ " $( id -u) " = " 0" ]; }
@@ -1224,7 +1224,7 @@ main_do_sth() {
12241224 # disabling this logic is still simple by defining HAS_END=1.
12251225 (( ${HAS_END:- 0} )) && { debug_begin && echo -n ' Success!' && debug_end; } || return $result_code # { [ $# -eq 0 ] && :; }
12261226}
1227- BASH_SH_VERSION=v20250609
1227+ BASH_SH_VERSION=v20250616
12281228DEBUG=${DEBUG:- 0}
12291229PROVISIONING=${PROVISIONING:- 0}
12301230# Instantly aliases cannot work in many cases such as conditional
@@ -1253,4 +1253,4 @@ path_in_orb_host "$0" && : || { [ -L "$SCRIPT" ] && debug "$(safety "linked scri
12531253# CD=$(cd `dirname "$0"`;pwd)
12541254# It will open a sub-shell to print the folder name of the running shell-script.
12551255in_sourcing && _bash_sh_load_import_files || main_do_sth " $@ "
1256- # ### HZ Tail END #### v20250609 ####
1256+ # ### HZ Tail END #### v20250616 ####
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ dbg() { ((DEBUG)) && printf ">>> \e[0;38;2;133;133;133m$@\e[0m\n" || :; }
1414tip () { printf " \e[0;38;2;133;133;133m>>> $@ \e[0m\n" ; }
1515err () { printf " \e[0;33;1;133;133;133m>>> $@ \e[0m\n" 1>&2 ; }
1616fn_exists () { LC_ALL=C type $1 2> /dev/null | grep -qE ' (shell function)|(a function)' ; }
17- CD=" $( cd $( dirname " $0 " ) && pwd) " && BASH_SH_VERSION=v20250609 && DEBUG=${DEBUG:- 0} && PROVISIONING=${PROVISIONING:- 0}
17+ CD=" $( cd $( dirname " $0 " ) && pwd) " && BASH_SH_VERSION=v20250616 && DEBUG=${DEBUG:- 0} && PROVISIONING=${PROVISIONING:- 0}
1818(( $# )) && {
1919 dbg " $# arg(s) | CD = $CD "
2020 check_entry () {
You can’t perform that action at this time.
0 commit comments