{"id":23418757,"url":"https://github.com/dzove855/bash-timer","last_synced_at":"2025-07-29T05:32:33.341Z","repository":{"id":58385428,"uuid":"530389908","full_name":"dzove855/Bash-Timer","owner":"dzove855","description":"Show time of each command after execution","archived":false,"fork":false,"pushed_at":"2022-09-02T09:27:21.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T08:36:33.413Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dzove855.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-29T20:52:28.000Z","updated_at":"2022-09-02T07:50:57.000Z","dependencies_parsed_at":"2023-01-17T19:31:58.309Z","dependency_job_id":null,"html_url":"https://github.com/dzove855/Bash-Timer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dzove855/Bash-Timer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzove855%2FBash-Timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzove855%2FBash-Timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzove855%2FBash-Timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzove855%2FBash-Timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dzove855","download_url":"https://codeload.github.com/dzove855/Bash-Timer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzove855%2FBash-Timer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267633670,"owners_count":24118777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-23T00:38:35.041Z","updated_at":"2025-07-29T05:32:33.312Z","avatar_url":"https://github.com/dzove855.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash-timer\n\nThis command will print the timetaken of each command.\nYou can setup it on PS1 or as PROMPT_COMMAND\n\n# setup\n```\n# Add the following line in your bashrc\nsource PATH/TO/FILE/bash-timer.sh\n\n# note the single quote!\nexport PROMPT_COMMAND='BashTimer::Prompt'\n```\n\n# Customization\nYou can choose between 3 differents output commands\n#### PS1\nTo set the output inside your PS1, you will need to add this to your PS1 = $(BashTimer::PS1)\n\n#### Basic Prompt\nThe basic prompt will only print the time taken on the new line, to export this:\n```\nexport PROMPT_COMMAND='BashTimer::Prompt'\n```\n\n#### Fancy Prompt\nThe fancy Prompt allows you to customize the prompt and have the output to the right with some colours.\n\nIn order to use the fancy Prompt you will need to export this:\n```\nexport PROMPT_COMMAND='BashTimer::FancyPrompt'\n```\n\nCustomization:\n```\n# the date output format\nBASHTIMER_TIME_FORMAT=\"%H:%M:%S\"\n\n# the output format: \n#   %r == return code \n#   %t == time taken\n#   %s == start time\n#   %e == end time\nBASHTIMER_OUTPUT_FORMAT=\"[ RC %r, Taken %t | Start Time: %s , End Time: %e ]\"\n\n# define colors for the output\nBASHTIMER_COLOR=(\n    [ok]=\"\\033[1;32m\"\n    [err]=\"\\033[0;31m\"\n    [reset]=\"\\033[0m\"\n)\n\n# Ignore commands where the timer should not run\nBASHTIMER_IGNORE_COMMAND+=(\"history\" \"BashTimer\") \n```\n\n\n![Alt text](pic/bashtimer.png?raw=true \"Bashtimer Picture\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzove855%2Fbash-timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdzove855%2Fbash-timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzove855%2Fbash-timer/lists"}