From a54d534d35851edf5e5c33a44a9218318eb42a81 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Tue, 28 Jul 2015 09:21:21 +0200 Subject: Improved the layout of the table displayed by the list command --- g.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g.sh') diff --git a/g.sh b/g.sh index d0288b4..4887cf1 100644 --- a/g.sh +++ b/g.sh @@ -62,7 +62,7 @@ save_shortcuts() { # The main function for this script. g() { - version="0.2" + version="0.3" cmd="$1" gfile=$HOME/.gfile declare -A gshortcuts @@ -114,7 +114,7 @@ g() { else for i in "${!gshortcuts[@]}"; do echo -e "$i\t=> ${gshortcuts[$i]}" - done + done | sort | column -t -s $'\t' fi ;; *) -- cgit v1.2.3