https://github.com/bam241/bash_macros
BaM bash-macros
https://github.com/bam241/bash_macros
bash macros
Last synced: 2 months ago
JSON representation
BaM bash-macros
- Host: GitHub
- URL: https://github.com/bam241/bash_macros
- Owner: bam241
- License: bsd-3-clause
- Created: 2017-01-22T22:40:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-30T18:28:54.000Z (over 1 year ago)
- Last Synced: 2025-03-30T19:31:03.047Z (over 1 year ago)
- Topics: bash, macros
- Language: Shell
- Homepage:
- Size: 645 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
======
Macros
======
1. `git-change-url`:
- taken from: https://gist.github.com/sankalp-khare/11356560
- Description: allows to switch between https and ssh the remote in a git repo
- Usage:
- `git-change-url` --to-ssh convert https url to ssh
- `git-change-url` --to-https conver ssh url to https one.
2. `py_switch`: allows to switch between py 3.5 and py 2.7, working only on
MacOS using macport
3. `set_all_remote`: change all remote from one username to another. Actually
setup to change Baaaaam into bam241... Can be easily change if needed...
4. `c_git`:
- Usage:
- without `args`, check if the actual folder is under git versionning, if
not `git init` it, then create a new ``GitHub`` named as the root folder
and add the remote, If the folder is already on git versionning, check
is there is a remote, if there is one, not pointing on one of your
GitHub repos, try to fork it, then setup both `origin` and `upstream`
remote, if there is no remote, create a repo on your GitHub account,
and add the remote as origin,
- with `args`, create a new ``GitHub`` repo name as the `args`, then
clone it locally.
5. `clang-format`: allow usage of clang-format, taken from
https://github.com/travisjeffery/ClangFormat-Xcode.