gam
gam copied to clipboard
gam is a CLI tool to manage permanent aliases
gam 
gam is a CLI tool to create, update and delete bash aliases permanently.
Installing
-
Create a file
.gam_aliasesin home directory. -
Source
.gam_aliasesin startup script(~/.bashrc,~/.zshrc).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 [email protected] -
Update an alias (First parameter is alias name, value is the rest)
gam gitlab ssh [email protected] -
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).
