aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--alias4
-rwxr-xr-xscripts/gist3
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"
38alias ll='ls -alh' 38alias ll='ls -alh'
39alias hg='history | grep' 39alias hg='history | grep'
40alias rmrf='rm -rf' 40alias rmrf='rm -rf'
41alias rr='move_to_tmp' 41alias rr='_move_to_tmp'
42move_to_tmp() { 42_move_to_tmp() {
43 mv $@ /tmp 43 mv $@ /tmp
44} 44}
45prompt() { 45prompt() {
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
128getConfiguredClient() { 126getConfiguredClient() {
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
468getConfiguredClient 467getConfiguredClient
469if [[ $init ]]; then _update; exit 0; fi 468if [[ $init ]]; then _update; exit 0; fi
470case "$1" in 469case "$1" in