Skip to content

dplocki/opti-choice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OptiChoice

The BASH project allows for more interactivity with certain console tools, like Git and 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).

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:

echo $PATH

On Linux it maybe be usually ~/.local/bin.

On Windows system you can also use the command:

echo %PATH%

but it will be better to open "Environment Variables" and then select "User".