move _tools-update to rc instead of qcd set

This commit is contained in:
q
2017-03-22 20:24:28 +02:00
parent 3d6656a160
commit 1b1e74b351
2 changed files with 11 additions and 7 deletions

View File

@@ -372,13 +372,6 @@ function foldermenu_prompt {
}
}
function _tools-update {
# update self
[[ -z "$TOOLSPATH" ]] && return
[[ -w "$TOOLSPATH" ]] || return
"$TOOLSPATH"/rc -u
}
function qbg {
# Run a program quiet, and backgrounded
"$@" &> /dev/null &

11
rc
View File

@@ -11,6 +11,17 @@ export PATH
. "$TOOLSPATH"/qcd_function
[[ -f "$TOOLSPATH"/tsv/tsvkit.sh ]] && . "$TOOLSPATH"/tsv/tsvkit.sh &>/dev/null
function _tools-update {
# update self
[[ -z "$TOOLSPATH" ]] && return
[[ -w "$TOOLSPATH" ]] || return
"$TOOLSPATH"/rc -u
}
function _tools-reload {
# update self
[[ -z "$TOOLSPATH" ]] && return
source "$TOOLSPATH"/rc
}
function _self_update() {
touch "$TOOLSPATH"/.lastupdate