handy tools for developers using bash or zsh
just clone the repository and source the shell-dev-tools.sh script in your .bashrc, .zshrc or whatever
Delete all branches but the default branch.
Supported default branch names:
- master
- main
- trunk
- stable
- mainline
- default
Count the number of characters in a string.
Get the current unix timestamp.
Convert a unix timestamp to a human readable datetime.
List all containers in a neat way.
Run a container temporarily to explore a docker image.
See try_docker --help for more information.
- the tools are developed inside a docker container
- all scripts are tested by bashunit
-
clone the repository
git clone https://gitub.com/devloberto/shell-dev-tools.git cd shell-dev-tools -
build the docker image
docker compose up -d --build
-
interactively enter the container's shell for testing
docker compose exec shell-dev-tools bashor directly run the unit tests
docker compose exec shell-dev-tools bashunit
Test automation for zsh.
Currently only bash support is automatically tested by bashunit.
zsh support is tested manually only at the moment.
Maybe something like shellspec should be used which supports both bash and zsh.