{"id":28360814,"url":"https://github.com/hschne/til-tool","last_synced_at":"2026-04-25T22:34:31.465Z","repository":{"id":288565628,"uuid":"968497886","full_name":"hschne/til-tool","owner":"hschne","description":"Create TILs from the command line 🗒️","archived":false,"fork":false,"pushed_at":"2025-05-14T07:07:57.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T23:35:16.710Z","etag":null,"topics":["automation","bash","bash-script","til"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hschne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-18T07:27:04.000Z","updated_at":"2025-05-14T07:08:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f32917d-246e-4046-b4ca-94e06b2ab8a8","html_url":"https://github.com/hschne/til-tool","commit_stats":null,"previous_names":["hschne/til-tool"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hschne/til-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hschne%2Ftil-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hschne%2Ftil-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hschne%2Ftil-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hschne%2Ftil-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hschne","download_url":"https://codeload.github.com/hschne/til-tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hschne%2Ftil-tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32279658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","bash","bash-script","til"],"created_at":"2025-05-28T12:07:08.628Z","updated_at":"2026-04-25T22:34:31.460Z","avatar_url":"https://github.com/hschne.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# TIL Tool\n\nA simple bash script to quickly create \"Today I Learned\" notes ([such as these](https://github.com/jbranchaud/til)) from the command line.\n\n![image](https://github.com/user-attachments/assets/8fa4c5e4-7fc0-4586-b2d2-e07670c81d3d)\n\n\u003c/div\u003e\n\n## Features\n\n- ✨ Create TIL notes with a single command.\n- 📝 Customize! Content, location, tags...\n- 🔄 Git integration for automatic commits and pushes\n\n## Usage\n\nDownload the `til` to some location on your `$PATH`:\n\n```bash\n# Download this script and make it executable\ncurl -sL --proto-redir -all,https https://raw.githubusercontent.com/hschne/refs/heads/main/til \u003e ~/.local/bin/til \u0026\u0026 chmod +x ~/.local/bin/til\n```\n\nThen, create a new TIL note:\n\n```bash\ntil \"Using fzf for Fuzzy Finding\"\n```\n\nThis will automatically create a new markdown file with today's date (`YYYY-MM-DD-using-fzf-for-fuzzy-finding.md`) and open it in your preferred editor. Once you save and close the editor your file will be automatically committed and pushed (if your TIL folder is a git repository).\n\nTo learn how you can customize your TIL notes content and note location see [#Configuration].\n\n## Configuration\n\nThe tool can be configured with environment variables:\n\n| Environment Variable | Description                   | Default     |\n| -------------------- | ----------------------------- | ----------- |\n| `TIL_FOLDER`         | Location to store TIL entries | `$HOME/til` |\n| `TIL_TEMPLATE`       | Custom template string        | See below   |\n| `TIL_TAGS`           | Default tags for entries      | Empty       |\n| `TIL_SKIP_PUSH`      | Skip git commit and push      | `false`     |\n\nIt also provides the following command line options.\n\n```\nUsage: til [OPTIONS] \"TITLE\"\n\nCreate a Today I Learned (TIL) markdown entry with the given title.\nNote: Multi-word titles must be enclosed in quotes.\n\nOptions:\n  -h, --help                   Show this help message and exit\n  -d, --directory DIR          Specify the TIL directory\n  -T, --template FILE          Use a custom template file\n  -t, --tags TAGS              Provide tags for the TIL file\n  --skip-push                  Skip git commit and push\n```\n\nYou will want to use a custom TIL folder and potentially a custom template. We recommend you use an alias and overwrite environment variables accordingly.\n\n```bash\n# ~/.aliases\nalias til=\"til -d ~/code/my-til-repository/notes -T ~/code/my-til-repository/template.md\"\n\n```\n\n### Templates\n\nYou may use a custom template file to structure you TIL notes. Templates may contain placeholders. The default template below lists available placeholders.\n\n```markdown\n---\ntitle: { TITLE }\ndate: { DATE }\ntags: { TAGS }\n---\n\n# {TITLE}\n\n{CONTENT}\n```\n\n## Advanced Usage\n\n```bash\n# Simple use case\ntil \"Bash Parameter Expansion\"\n# Read from stdin. Great for scripting.\nsomecommand | til \"My Automated TIL\"\n# Customize using env vars\nexport TIL_FOLDER=~/code/my-til-repository/notes\nexport TIL_TEMPLATE=$(cat ~/code/my-til-repository/template.md)\ntil \"Bash Parameter Expansion\"\n```\n\n## Credit\n\nTIL (\"Today I Learned\") notes are brief documents that record new snippets of knowledge you acquire daily. This tool is inspired by repositories like [jbranchaud/til](https://github.com/jbranchaud/til) and [thoughtbot/til](https://github.com/thoughtbot/til) and aims to make it easier for anyone to start their own TIL repository.\n\nShoutout also to [Chris Oliver] \u0026 Andrew Mason who discussed TIL notes in [this episode of Remote Ruby](https://www.remoteruby.com/2260490/episodes/16891112-more-listener-questions) and motivated the creation of this script.\n\n## Development\n\n### Running Tests\n\nTests are written using the [Bats](https://github.com/bats-core/bats-core) testing framework. Install bats if needed and run tests.\n\n```bash\nbats test/til.bats\n```\n\n## License\n\n[License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhschne%2Ftil-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhschne%2Ftil-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhschne%2Ftil-tool/lists"}