Terminal: Das OS aliases and functions (0.9.3)
build / build (push) Successful in 23m2s

- das-shell 0.3.0: aliases and functions for every interactive bash
  (/usr/share/das/shell, loaded by /etc/bash/bashrc.d/das-aliases.sh,
  then the user's ~/.bash_aliases and ~/.bash_functions; off with
  ~/.config/das/no-aliases). Based on the author's own set, adapted to
  Void (xbps, nftables, das-update), with fixes (rmhost, netinfo,
  todo -r, dirsize, extract) and new ones (up, bigfiles, pkgowner,
  please, serve, weather, cheat, genpass, Docker shortcuts). lsfunc
  shows bilingual descriptions. Shell tests in tests/test_shell.py.
- Names that shadowed commands are gone: gh -> hgrep, mount -> mounts,
  no install or ed.
- README: "Aliases and functions" section; TODO: banner, dashboard
  service and prompt verified by the author on real hardware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
das
2026-10-21 19:35:58 +03:00
co-authored by Claude Opus 5.5
parent 6564d1eb17
commit e01e1786d6
9 changed files with 580 additions and 12 deletions
@@ -0,0 +1,18 @@
# Das OS aliases and functions (lsfunc lists the functions), then the user's
# own ~/.bash_aliases and ~/.bash_functions, which win. Off for one user:
# touch ~/.config/das/no-aliases (the user's own files are still read).
# shellcheck shell=bash
if [[ $- == *i* ]]; then
if [[ ! -e ${XDG_CONFIG_HOME:-$HOME/.config}/das/no-aliases ]]; then
for __das_f in /usr/share/das/shell/aliases.sh /usr/share/das/shell/functions.sh; do
# shellcheck source=/dev/null
[[ -r $__das_f ]] && . "$__das_f"
done
fi
for __das_f in ~/.bash_aliases ~/.bash_functions; do
# shellcheck source=/dev/null
[[ -r $__das_f ]] && . "$__das_f"
done
unset __das_f
fi