|
|
|
|
|
by tedmiston
1552 days ago
|
|
I just make bash functions in my dotfiles for use cases like these, particularly good CLI arg combinations from Stack Overflow answers, etc. Example: # 2022-02-07
# because `poetry show --outdated` includes *all* packages (!), not just top-level dependencies
function poetry-show-outdated {
poetry show --outdated | grep --file=<(poetry show --tree | grep '^\w' | cut -d' ' -f1)
}
Or: function disk-usage-summary () {
# output high-level disk usage stats
set -x
du --human-readable --summarize
du --human-readable --max-depth=1
df --human-readable --total
set +x
}
|
|