Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

gam is a CLI tool to manage permanent aliases

License

NotificationsYou must be signed in to change notification settings

ademozay/gam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 runsource ~/.bashrc orsource ~/.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).

About

gam is a CLI tool to manage permanent aliases

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp