Skip to content

Script to quickly add a permanent alias and make it available immediately.

License

Notifications You must be signed in to change notification settings

dzliergaard/add-alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

add-alias

Adds or removes an alias to file ~/.aliases. If terminal's rc file doesn't source ~/.aliases, adds a line to do so. If no command provided, prints the current alias.

Usage

add [flags] [alias] [command]

Flags: -d: delete given alias (terminating) -h: print this message (terminating)

Notes

To enable aliases being available immediately upon adding them, make sure to source the .add-aliases script, or simply add an alias to do so:

alias add="source ~/bin/.add-alias"

About

Script to quickly add a permanent alias and make it available immediately.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages