https://github.com/dplocki/opti-choice
The BASH project allows for more interactivity with certain console tools
https://github.com/dplocki/opti-choice
bash bash-script bash-scripting bash-scripts git-script git-scripts
Last synced: 3 months ago
JSON representation
The BASH project allows for more interactivity with certain console tools
- Host: GitHub
- URL: https://github.com/dplocki/opti-choice
- Owner: dplocki
- License: gpl-3.0
- Created: 2024-06-13T17:20:05.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-11-03T19:19:54.000Z (7 months ago)
- Last Synced: 2025-01-14T14:11:34.490Z (4 months ago)
- Topics: bash, bash-script, bash-scripting, bash-scripts, git-script, git-scripts
- Language: Shell
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 💬 OptiChoice
The [BASH](https://www.gnu.org/software/bash/manual/bash.html#What-is-Bash_003f) project allows for more interactivity with certain console tools, like [Git](https://git-scm.com/) and [NVM](https://github.com/nvm-sh/nvm).
The project also provides a toolset for easy extension.## Installation
Put the package content in some of the `PATH` location.
The file `git_switch_branch.sh` has to be put inside the directory. But all other files (those without extensions) can be skipped. If you are not interested with particular command just do not install it.
## Use
After installation, you can use additional commands (unless omitted during [the installation process](#installation)).
## Commands
| Command | Source command | The result command |
|:----------------------|:---------------|:-------------------------|
| `git_switch_branch` |`git branch` |`git checkout $selection` |
| `nvm_select` |`nvm list` |`nvm use $selection` |### How to find the correct place
You can see the directories listed in the PATH:
```sh
echo $PATH
```On Linux it maybe be usually `~/.local/bin`.
On Windows system you can also use the command:
```bat
echo %PATH%
```but it will be better to open "Environment Variables" and then select "User".