This is a collection of scripts that I use to automate my workflow. I wrote them to make my life easier, and I hope they can help you, too.
Clone the repository:
git clone [email protected]:michen00/bin.gitCopy its contents to your bin directory:
cp -r ./bin/* ~/binAlternatively, you can create a symbolic link to the bin directory:
ln -s ./bin ~/binAdd the bin directory to your PATH
export PATH="$HOME/bin:$PATH"Add the above line to your favorite shell configuration file (e.g. ~/.bashrc, ~/bash_profile, etc.; it might already be there) and source it. For example, for zsh:
. ~/.zshrcach: Add the last commit hash to a given file (.git-blame-ignore-revsfile by default).chdirx: Add+xpermission to all executable files (that start with#!) in the given directory.git-shed: Identify and remove merged & stale branches with respect to a target branch.how-big: Show the size of the given directory.mergewith: Merge the latest changes from a reference branch into the current branch (updating both).touchx: Create (or update) a file and add+xpermission to it.update-mine: Update all branches with open pull requests authored by you.venv-now: Create a new Python virtual environment in ./.venv (or the given directory), activating it if sourced.