Commits

Magnus Hoff committed 7bcb39b

Added "p" as shorthand/alias for "prog open", including completion

  • Participants
  • Parent commits d6410a3

Comments (0)

Files changed (1)

 	COMPREPLY=( $(prog complete ${args[@]}) );
 }
 complete -F _prog_completion prog
+
+function _prog_open_completion() {
+	local args=(aprog aopen)
+	for x in "${COMP_WORDS[@]:1}";
+	do
+		args+=("a$x")
+	done
+	COMPREPLY=( $(prog complete ${args[@]}) );
+}
+complete -F _prog_open_completion p
+
+alias p="prog open"