diff options
| author | typebrook <typebrook@gmail.com> | 2020-02-07 12:56:24 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-02-07 12:56:24 +0800 |
| commit | 8213c4ec0b6c37bf2ef62f9d3f0a15ba5ce08ced (patch) | |
| tree | a5f38c2c4d82a8890a63f791c568e7711037ad2d | |
| parent | 463004df769a2bae5cfea5f85c262fc13c70fbbe (diff) | |
update
| -rw-r--r-- | alias | 4 | ||||
| -rwxr-xr-x | scripts/gist | 3 |
2 files changed, 3 insertions, 4 deletions
| @@ -38,8 +38,8 @@ alias src="source $HOME/.$(basename $SHELL)rc" | |||
| 38 | alias ll='ls -alh' | 38 | alias ll='ls -alh' |
| 39 | alias hg='history | grep' | 39 | alias hg='history | grep' |
| 40 | alias rmrf='rm -rf' | 40 | alias rmrf='rm -rf' |
| 41 | alias rr='move_to_tmp' | 41 | alias rr='_move_to_tmp' |
| 42 | move_to_tmp() { | 42 | _move_to_tmp() { |
| 43 | mv $@ /tmp | 43 | mv $@ /tmp |
| 44 | } | 44 | } |
| 45 | prompt() { | 45 | 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() { | |||
| 122 | INDEX=$folder/index; [[ -e $INDEX ]] || touch $INDEX | 122 | INDEX=$folder/index; [[ -e $INDEX ]] || touch $INDEX |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | _apply_config "$@" || exit 1 | ||
| 126 | |||
| 127 | # This function determines which http get tool the system has installed and returns an error if there isnt one | 125 | # This function determines which http get tool the system has installed and returns an error if there isnt one |
| 128 | getConfiguredClient() { | 126 | getConfiguredClient() { |
| 129 | if command -v curl &>/dev/null; then | 127 | if command -v curl &>/dev/null; then |
| @@ -465,6 +463,7 @@ usage() { | |||
| 465 | sed -E -n ' /^$/ q; 7,$ s/^# //p' $0 | 463 | sed -E -n ' /^$/ q; 7,$ s/^# //p' $0 |
| 466 | } | 464 | } |
| 467 | 465 | ||
| 466 | _apply_config "$@" || exit 1 | ||
| 468 | getConfiguredClient | 467 | getConfiguredClient |
| 469 | if [[ $init ]]; then _update; exit 0; fi | 468 | if [[ $init ]]; then _update; exit 0; fi |
| 470 | case "$1" in | 469 | case "$1" in |