update also reloads
This commit is contained in:
14
rc
14
rc
@@ -11,17 +11,19 @@ export PATH
|
||||
|
||||
. "$TOOLSPATH"/qcd_function
|
||||
[[ -f "$TOOLSPATH"/tsv/tsvkit.sh ]] && . "$TOOLSPATH"/tsv/tsvkit.sh &>/dev/null
|
||||
function _tools-reload {
|
||||
# reload self
|
||||
[[ -z "$TOOLSPATH" ]] && return
|
||||
source "$TOOLSPATH"/rc
|
||||
}
|
||||
function _tools-update {
|
||||
# update self
|
||||
[[ -z "$TOOLSPATH" ]] && return
|
||||
[[ -w "$TOOLSPATH" ]] || return
|
||||
"$TOOLSPATH"/rc -u
|
||||
"$TOOLSPATH"/rc -u
|
||||
_tools-reload
|
||||
}
|
||||
function _tools-reload {
|
||||
# update self
|
||||
[[ -z "$TOOLSPATH" ]] && return
|
||||
source "$TOOLSPATH"/rc
|
||||
}
|
||||
|
||||
|
||||
function _self_update() {
|
||||
touch "$TOOLSPATH"/.lastupdate
|
||||
|
||||
Reference in New Issue
Block a user