diff options
-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 |