diff --git a/zet b/zet index e2393db..661aefc 100755 --- a/zet +++ b/zet @@ -14,7 +14,6 @@ Usage: zet id QUERY... : Search for a zettel and display its ID zet latest : Edit the latest zettel zet print|p QUERY... : Search for a zettel and print it - zet push : Push changes zet view|v QUERY... : Search for a zettel and view it zet QUERY... : Print IDs and titles of zettels matching QUERY @@ -52,10 +51,6 @@ cmd_links() { generate_links "$(cmd_search "$QUERY")" } -cmd_push() { - git push -} - cmd_search() { parse_zet_list < <(search_zettel "$@") printf "%s\n" "${ZET_LIST[@]}" @@ -83,6 +78,7 @@ commit_zettel() { git add "$ZID" git commit -m "$MESSAGE" + git push } create_zettel() { @@ -160,10 +156,6 @@ main() { cmd_links "$@" ;; - push) - cmd_push - ;; - view | v) shift 1 cmd_view "$@"