{"id":30274417,"url":"https://github.com/bam241/bash_macros","last_synced_at":"2026-04-18T09:31:21.687Z","repository":{"id":126018918,"uuid":"79750933","full_name":"bam241/bash_macros","owner":"bam241","description":"BaM bash-macros","archived":false,"fork":false,"pushed_at":"2025-03-30T18:28:54.000Z","size":660,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T19:31:03.047Z","etag":null,"topics":["bash","macros"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bam241.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}},"created_at":"2017-01-22T22:40:35.000Z","updated_at":"2025-03-30T18:28:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"72ac67c7-7ff7-4282-a956-299c7b15ce85","html_url":"https://github.com/bam241/bash_macros","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bam241/bash_macros","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bam241%2Fbash_macros","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bam241%2Fbash_macros/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bam241%2Fbash_macros/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bam241%2Fbash_macros/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bam241","download_url":"https://codeload.github.com/bam241/bash_macros/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bam241%2Fbash_macros/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270686770,"owners_count":24628306,"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-08-16T02:00:11.002Z","response_time":91,"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":["bash","macros"],"created_at":"2025-08-16T08:34:57.541Z","updated_at":"2026-04-18T09:31:16.659Z","avatar_url":"https://github.com/bam241.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"======\nMacros\n======\n\n1. `git-change-url`:\n    - taken from: https://gist.github.com/sankalp-khare/11356560\n    - Description: allows to switch between https and ssh the remote in a git repo\n    - Usage:\n        - `git-change-url` --to-ssh convert https url to ssh\n        - `git-change-url` --to-https conver ssh url to https one.\n\n2. `py_switch`: allows to switch between py 3.5 and py 2.7, working only on\n    MacOS using macport\n\n3. `set_all_remote`: change all remote from one username to another. Actually\n   setup to change Baaaaam into bam241... Can be easily change if needed...\n\n4. `c_git`:\n    - Usage:\n        - without `args`, check if the actual folder is under git versionning, if\n          not `git init` it, then create a new ``GitHub`` named as the root folder\n          and add the remote, If the folder is already on git versionning, check\n          is there is a remote, if there is one, not pointing on one of your\n          GitHub repos, try to fork it, then setup both `origin` and `upstream`\n          remote, if there is no remote, create a repo on your GitHub account,\n          and add the remote as origin,\n        - with `args`, create a new ``GitHub`` repo name as the `args`, then\n          clone it locally.\n5. `clang-format`: allow usage of clang-format, taken from\n   https://github.com/travisjeffery/ClangFormat-Xcode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbam241%2Fbash_macros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbam241%2Fbash_macros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbam241%2Fbash_macros/lists"}