https://github.com/gr455/permalias
Add an alias to bash with one command
https://github.com/gr455/permalias
Last synced: 27 days ago
JSON representation
Add an alias to bash with one command
- Host: GitHub
- URL: https://github.com/gr455/permalias
- Owner: gr455
- Created: 2020-07-07T12:24:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-07T12:50:36.000Z (about 6 years ago)
- Last Synced: 2025-01-09T13:11:31.049Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# permalias
Add an alias to bash permanently with one command
# Usage
1. Copy the script to /bin/ directory (sudo required for the copy)
`sudo cp permalias /bin/permalias`
2. Run
`permalias `
# Examples
1. `permalias doc docker-compose`
2. `permalias hello "echo 'hello world'"`
3. `permalias hello "echo 'hello world'" grass` (if I want to add the alias for 'grass' user)