This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Highlight any help text in the stdin. | |
# It has been tested with various command line tools and should be able to handle most | |
# of them regardless of the language or framework used to write them. | |
# | |
# Since this is just a sed pattern, it works in any shell. For example, in my zsh setup | |
# I have a global alias | |
# | |
# export LESS=-FR # enable colors, exit if contents fit in one screen | |
# alias -g h='--help |& colorize_help | less' | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Read poetry.lock and display information about dependencies: | |
# | |
# * Project dependencies | |
# * Sub-dependencies and reverse dependencies of packages | |
# * Summary of updates, or change in dependency versions between two revisions of the project | |
# | |
# Author: Sarunas Nejus, 2021 | |
# License: MIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Try finding the changelog of a Python package and render it with glow (markdown) or | |
# pygments (md and rst), if they are installed. | |
# | |
# Tested with bash and zsh. It isn't POSIX-compatible however. | |
# | |
# ### clone the gist | |
# $ chmod a+x changelog | |
# $ ln -is `realpath changelog` ~/.local/bin/changelog |