From 1b10be0bbb0ee87237bca3c9ce0195e279038e03 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Thu, 6 Apr 2017 11:00:55 +0300 Subject: [PATCH] rename update functions --- rc | 6 +++--- tsv/lib/tsvhead | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rc b/rc index 920f299..edfd679 100755 --- a/rc +++ b/rc @@ -11,17 +11,17 @@ export PATH . "$TOOLSPATH"/qcd_function [[ -f "$TOOLSPATH"/tsv/tsvkit.sh ]] && . "$TOOLSPATH"/tsv/tsvkit.sh &>/dev/null -function _tools-reload { +function _q-tools-reload { # reload self [[ -z "$TOOLSPATH" ]] && return source "$TOOLSPATH"/rc } -function _tools-update { +function _q-tools-update { # update self [[ -z "$TOOLSPATH" ]] && return [[ -w "$TOOLSPATH" ]] || return "$TOOLSPATH"/rc -u - _tools-reload + _q-tools-reload } diff --git a/tsv/lib/tsvhead b/tsv/lib/tsvhead index 368b94f..f568740 100755 --- a/tsv/lib/tsvhead +++ b/tsv/lib/tsvhead @@ -88,6 +88,8 @@ def main(): else: import traceback print traceback.format_exc() + except KeyboardInterrupt: + pass if __name__ == "__main__": main()