https://github.com/ademozay/gam
gam is a CLI tool to manage permanent aliases
https://github.com/ademozay/gam
bash-aliases cli go
Last synced: 3 months ago
JSON representation
gam is a CLI tool to manage permanent aliases
- Host: GitHub
- URL: https://github.com/ademozay/gam
- Owner: ademozay
- License: mit
- Created: 2017-11-22T19:25:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-13T12:54:45.000Z (over 8 years ago)
- Last Synced: 2025-04-29T11:42:12.406Z (about 1 year ago)
- Topics: bash-aliases, cli, go
- Language: Go
- Size: 12.7 KB
- Stars: 15
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gam [](https://travis-ci.org/ademozay/gam)
gam is a CLI tool to create, update and delete bash aliases permanently.
[](https://asciinema.org/a/150608)
### Installing
* Create a file `.gam_aliases` in home directory.
* Source `.gam_aliases` in startup script(`~/.bashrc`, `~/.zshrc`).
```bash
source ~/.gam_aliases
```
* `go get -u github.com/ademozay/gam`
#### Samples
* Create an alias (First parameter is alias name, value is the rest)
`gam gitlab ssh admin@10.0.8.13`
* Update an alias (First parameter is alias name, value is the rest)
`gam gitlab ssh admin@10.0.8.14`
* Delete an alias
`gam -d gitlab`
* Print an alias
`gam gitlab`
* Print all aliases created by gam
`gam`
Either run `source ~/.bashrc` or `source ~/.zshrc` according to current shell or open a new terminal for changes to take place.
#### Contribution
All contributions are welcome.
##### TODO
- [ ] Source bash in current session. (Find a way to find the right startup script(`~/.bashrc`, `~/.zshrc`).