An open API service indexing awesome lists of open source software.

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

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.