aboutsummaryrefslogtreecommitdiff
path: root/g.sh
diff options
context:
space:
mode:
authorMiquel Sabaté <msabate@suse.com>2015-07-28 09:21:21 +0200
committerMiquel Sabaté <msabate@suse.com>2015-07-28 09:21:21 +0200
commita54d534d35851edf5e5c33a44a9218318eb42a81 (patch)
tree9b098fbfe1123ac8dfefe054a0d6567bc733cc08 /g.sh
parentbc055613efcf2614939471aabf3b7117f436a549 (diff)
downloadg-a54d534d35851edf5e5c33a44a9218318eb42a81.tar.gz
g-a54d534d35851edf5e5c33a44a9218318eb42a81.zip
Improved the layout of the table displayed by the list command
Diffstat (limited to 'g.sh')
-rw-r--r--g.sh4
1 files changed, 2 insertions, 2 deletions
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
;;
*)