Skip to content

devloberto/shell-dev-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shell dev tools

tests status

handy tools for developers using bash or zsh

installation

just clone the repository and source the shell-dev-tools.sh script in your .bashrc, .zshrc or whatever

provided commands

git_delete_all_branches_but_default

Delete all branches but the default branch.
Supported default branch names:

  • master
  • main
  • trunk
  • stable
  • mainline
  • default

strcnt

Count the number of characters in a string.

unix_now

Get the current unix timestamp.

unix_to_date

Convert a unix timestamp to a human readable datetime.

dockerll

List all containers in a neat way.

try_docker

Run a container temporarily to explore a docker image. See try_docker --help for more information.

development

  • the tools are developed inside a docker container
  • all scripts are tested by bashunit

setup

  • 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 bash

    or directly run the unit tests

    docker compose exec shell-dev-tools bashunit

TODO

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.

About

handy tools for developers using bash or zsh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors