From 5ff294050b27f36eaea1ab19ef3a65bde7a07bf5 Mon Sep 17 00:00:00 2001 From: typebrook Date: Sun, 12 Jan 2020 01:03:25 +0800 Subject: update --- alias | 1 + scripts/gist | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/alias b/alias index 6b5042a..de098d5 100644 --- a/alias +++ b/alias @@ -219,6 +219,7 @@ alias m='mutt' # misc alias foo="echo bar > foo && echo File foo is created && ls -lh foo" +alias bar="echo foo > bar && echo File bar is created && ls -lh bar" alias token="cd $SETTING_DIR/tokens && ls -lh" alias gr='_grepString' _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() { jq '.[] | {user: .user.login, created_at: .created_at, updated_at: .updated_at, body: .body}' } -# create a new gist with a file and description +# create a new gist with files # TODO support folder of files _create_gist() { echo -n 'description: ' @@ -124,7 +124,7 @@ _create_gist() { description: ($DESC) }' |\ curl -s -H "$auth_header" --data @- $github_api/gists > /dev/null && \ - _update + _update && _sync_repos } # update description of a gist -- cgit v1.2.3-70-g09d2