diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/gist | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist index 476936b..34f42e3 100755 --- a/scripts/gist +++ b/scripts/gist | |||
| @@ -82,7 +82,7 @@ _config_cases() { | |||
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | _configure() { | 84 | _configure() { |
| 85 | [[ -z "$@" ]] && (vim $config) && return 0 | 85 | [[ -z "$@" ]] && (${EDITOR:-vi} $config) && return 0 |
| 86 | target=$(_config_cases "$@") | 86 | target=$(_config_cases "$@") |
| 87 | 87 | ||
| 88 | touch $config | 88 | touch $config |
| @@ -239,6 +239,7 @@ _gist_id() { | |||
| 239 | fi | 239 | fi |
| 240 | } | 240 | } |
| 241 | 241 | ||
| 242 | # TODO a better way withou source | ||
| 242 | _goto_gist() { | 243 | _goto_gist() { |
| 243 | _gist_id $1 | 244 | _gist_id $1 |
| 244 | 245 | ||