gam

command module
v0.0.0-...-ae4de48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 10 Imported by: 0

README

gam Build Status

gam is a CLI tool to create, update and delete bash aliases permanently.

asciicast

Installing
  • Create a file .gam_aliases in home directory.

  • Source .gam_aliases in 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 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).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL