diff options
| author | typebrook <typebrook@gmail.com> | 2020-01-31 10:23:55 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-01-31 10:23:55 +0800 |
| commit | 77a475d376000020662c5eeff78d23fa96c18366 (patch) | |
| tree | 933fb16419224bdc6c1d26cf62073cfb86df016c /scripts | |
| parent | cdb35f3b6249444408f513a82adb0dd288b12bdb (diff) | |
update
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 | ||