diff options
| -rw-r--r-- | alias | 1 | ||||
| -rwxr-xr-x | scripts/gist | 4 |
2 files changed, 3 insertions, 2 deletions
| @@ -219,6 +219,7 @@ alias m='mutt' | |||
| 219 | 219 | ||
| 220 | # misc | 220 | # misc |
| 221 | alias foo="echo bar > foo && echo File foo is created && ls -lh foo" | 221 | alias foo="echo bar > foo && echo File foo is created && ls -lh foo" |
| 222 | alias bar="echo foo > bar && echo File bar is created && ls -lh bar" | ||
| 222 | alias token="cd $SETTING_DIR/tokens && ls -lh" | 223 | alias token="cd $SETTING_DIR/tokens && ls -lh" |
| 223 | alias gr='_grepString' | 224 | alias gr='_grepString' |
| 224 | _grepString() { | 225 | _grepString() { |
diff --git a/scripts/gist b/scripts/gist index b55012b..007032b 100755 --- a/scripts/gist +++ b/scripts/gist | |||
| @@ -107,7 +107,7 @@ _show_detail() { | |||
| 107 | jq '.[] | {user: .user.login, created_at: .created_at, updated_at: .updated_at, body: .body}' | 107 | jq '.[] | {user: .user.login, created_at: .created_at, updated_at: .updated_at, body: .body}' |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | # create a new gist with a file and description | 110 | # create a new gist with files |
| 111 | # TODO support folder of files | 111 | # TODO support folder of files |
| 112 | _create_gist() { | 112 | _create_gist() { |
| 113 | echo -n 'description: ' | 113 | echo -n 'description: ' |
| @@ -124,7 +124,7 @@ _create_gist() { | |||
| 124 | description: ($DESC) | 124 | description: ($DESC) |
| 125 | }' |\ | 125 | }' |\ |
| 126 | curl -s -H "$auth_header" --data @- $github_api/gists > /dev/null && \ | 126 | curl -s -H "$auth_header" --data @- $github_api/gists > /dev/null && \ |
| 127 | _update | 127 | _update && _sync_repos |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | # update description of a gist | 130 | # update description of a gist |