-
Notifications
You must be signed in to change notification settings - Fork 0
Doc
Special tasks are organized in so called “modes“.
Mode for programmers common tasks. They are divided to subcommands for every programming language.
cc - c/c++
Cr- Compile and run, standalone file is first argument
Cr example1.cpp
Compiling example1.cpp and running example1
Hello World!js - javascript
I - Installing node module and save it to package.json
I express cookie-parserI - Installing node module and save it to package.json under development section
Id nodemonnvm - nodejs version manager
nvm install v13.0.1
# use it
nvm deactivate v13.0.1
nvm uninstall v13.0.1
nvm cache clearpy - python
Package (un)installing and service administrating.
| pkg SubCommand | Description |
|---|---|
| I | automatically installs package(s) and dependencies |
| i | installs package(s) and dependencies |
| U | automatically uninstall package(s) |
| u | uninstall package(s) |
| S | service command (start, stop, .. ) |
| se | search package(s) |
| q | obtain info about package |
Source Code Managment is mode for dealing with sourses. This module starts also automatically when in SCM folder.
| SCM SubCommand | Description |
|---|---|
| bzr | Canonical bazar |
| git | Linus Torvalds' git |
| hg | Mercurial |
| svn | Subversion |
bash4all uses autocompletions whenever is possible.
mode p<Tab><Tab>
# will autocomplete mode pkg
mode pkgOr with subparameters:
mode scm s<Tab><Tab>
# will autocomplete
mode scm svn(in mode pkg)
I mer<Tab><Tab>
# will autocomplete
I mercurialBy writting commands to .bash4all_install you can extend the bas4all installation. But be aware that only pkg mode is available.
You can also easily customize / extend the installation to meet your needs. Just before installation add custom commands to special file. E.g. # installs also cowsay package
echo I cowsay > ~/.bash4all_installcat > ~/.bash4all_install << EOF
# manal installation because not in repository
[ "\$BASED" = BSD ] && I py36-pip && sudo pip install asciinema
[ "\$BASED" = MAGEIA ] && I python3-pip && pip3 install asciinema
I asciinema # try install from repository
EOF