rename update functions
This commit is contained in:
6
rc
6
rc
@@ -11,17 +11,17 @@ export PATH
|
|||||||
|
|
||||||
. "$TOOLSPATH"/qcd_function
|
. "$TOOLSPATH"/qcd_function
|
||||||
[[ -f "$TOOLSPATH"/tsv/tsvkit.sh ]] && . "$TOOLSPATH"/tsv/tsvkit.sh &>/dev/null
|
[[ -f "$TOOLSPATH"/tsv/tsvkit.sh ]] && . "$TOOLSPATH"/tsv/tsvkit.sh &>/dev/null
|
||||||
function _tools-reload {
|
function _q-tools-reload {
|
||||||
# reload self
|
# reload self
|
||||||
[[ -z "$TOOLSPATH" ]] && return
|
[[ -z "$TOOLSPATH" ]] && return
|
||||||
source "$TOOLSPATH"/rc
|
source "$TOOLSPATH"/rc
|
||||||
}
|
}
|
||||||
function _tools-update {
|
function _q-tools-update {
|
||||||
# update self
|
# update self
|
||||||
[[ -z "$TOOLSPATH" ]] && return
|
[[ -z "$TOOLSPATH" ]] && return
|
||||||
[[ -w "$TOOLSPATH" ]] || return
|
[[ -w "$TOOLSPATH" ]] || return
|
||||||
"$TOOLSPATH"/rc -u
|
"$TOOLSPATH"/rc -u
|
||||||
_tools-reload
|
_q-tools-reload
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,8 @@ def main():
|
|||||||
else:
|
else:
|
||||||
import traceback
|
import traceback
|
||||||
print traceback.format_exc()
|
print traceback.format_exc()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user