https://github.com/eviweb/bash-commands-installer
This tool facilitates the installation/uninstallation of custom commands.
https://github.com/eviweb/bash-commands-installer
Last synced: about 1 month ago
JSON representation
This tool facilitates the installation/uninstallation of custom commands.
- Host: GitHub
- URL: https://github.com/eviweb/bash-commands-installer
- Owner: eviweb
- License: mit
- Created: 2014-01-20T13:28:11.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-20T16:03:05.000Z (over 12 years ago)
- Last Synced: 2025-01-19T21:46:17.794Z (over 1 year ago)
- Language: Shell
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Bash Command Installer
======================
This tool facilitates the installation/uninstallation of custom commands.
How to install
--------------
> When installed to a directory available from `$PATH`, you can use the command alias `bcinst`
**requirement for all the following installation types**
clone this repo `git clone https://github.com/eviweb/bash-commands-installer`
### local use from the cloned repository
simply run the command `bash-commands-installer/install.sh`
### install in $HOME/bin
run the command `bash-commands-installer/install.sh bin`
### install in /usr/local/bin
run the command `sudo bash-commands-installer/install.sh bin /usr/local/bin`
**For the following topics, I presume you've installed the command alias, so `bcinst` is available.**
How to uninstall
----------------
### uninstall from $HOME/bin
run the command `bcinst -r bin`
### uninstall from /usr/local/bin
run the command `sudo bcinst -r bin /usr/local/bin`
What are commands ?
-------------------
Commands are exectutable files.
What are types ?
----------------
Types are directories containing commands.
Conventions
-----------
* _TYPE_: represents the type name
* _DEST_: represents the command installation directory
* _SRC_: represents the source directory providing command files
How to register a new type
--------------------------
run the command `bcinst -a TYPE SRC`
How to unregister a type
------------------------
run the command `bcinst -d TYPE`
How to list available types
---------------------------
run the command `bcinst -l`
How to install commands of a type
---------------------------------
run the command `bcinst TYPE DEST`
How to uninstall commands of a type
-----------------------------------
run the command `bcinst -r TYPE DEST`
_Help and version related information are available respecitely by using `-h` and `-V` options._
License information
-------------------
Please see [License](LICENSE)
Contribute
----------
Feel free to fork and ask for pull requests.