From 8213c4ec0b6c37bf2ef62f9d3f0a15ba5ce08ced Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 7 Feb 2020 12:56:24 +0800 Subject: update --- alias | 4 ++-- scripts/gist | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/alias b/alias index 0cdf84f..23e1c7e 100644 --- a/alias +++ b/alias @@ -38,8 +38,8 @@ alias src="source $HOME/.$(basename $SHELL)rc" alias ll='ls -alh' alias hg='history | grep' alias rmrf='rm -rf' -alias rr='move_to_tmp' -move_to_tmp() { +alias rr='_move_to_tmp' +_move_to_tmp() { mv $@ /tmp } prompt() { diff --git a/scripts/gist b/scripts/gist index 1222e82..ee1ef5b 100755 --- a/scripts/gist +++ b/scripts/gist @@ -122,8 +122,6 @@ _apply_config() { INDEX=$folder/index; [[ -e $INDEX ]] || touch $INDEX } -_apply_config "$@" || exit 1 - # This function determines which http get tool the system has installed and returns an error if there isnt one getConfiguredClient() { if command -v curl &>/dev/null; then @@ -465,6 +463,7 @@ usage() { sed -E -n ' /^$/ q; 7,$ s/^# //p' $0 } +_apply_config "$@" || exit 1 getConfiguredClient if [[ $init ]]; then _update; exit 0; fi case "$1" in -- cgit v1.2.3-70-g09d2