[Intel-gfx] [maintainer-tools PATCH 6/8] dim: rename alias subcommand to list-aliases

Jani Nikula jani.nikula at intel.com
Thu Feb 18 16:20:52 UTC 2016


Also drop leading tab and fix underscores in output. Helper for bash
completion.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 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



More information about the Intel-gfx mailing list