Also drop leading tab and fix underscores in output. Helper for bash completion. Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx> --- dim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dim b/dim index 2f6e6151a4b2..1addd6f6a0e9 100755 --- a/dim +++ b/dim @@ -1121,11 +1121,12 @@ function dim_list_commands declare -F | grep -o " dim_[a-zA-Z_]*" | sed 's/^ dim_//;s/_/-/g' } -function dim_alias +# Note: used by bash completion +function dim_list_aliases { # use posix mode to omit functions in set output ( set -o posix; set ) | grep "^dim_alias_[a-zA-Z0-9_]*=" |\ - sed 's/^dim_alias_/\t/;s/=/\t/' + sed 's/^dim_alias_//;s/=/\t/;s/_/-/g' } function dim_cat_to_fixup -- 2.1.4 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx