diff --git a/README.md b/README.md index bb98341..204f584 100644 --- a/README.md +++ b/README.md @@ -148,14 +148,24 @@ Pressing the `tab` key after the command (`-u` or `--unregister`), the completio ### List aliases To get the list of your currently registered aliases, use: + ```bash goto -l ``` + or + ```bash goto --list ``` +or + +```bash +goto -l --sort # or +goto --list --sort # sort output +``` + ### Expand an alias To expand an alias to its value, use: diff --git a/goto.sh b/goto.sh index 4d52ccd..1d493ff 100644 --- a/goto.sh +++ b/goto.sh @@ -55,7 +55,7 @@ goto() _goto_directory_pop ;; -l|--list) - _goto_list_aliases + _goto_list_aliases "$@" ;; -x|--expand) # Expand an alias _goto_expand_alias "$@" @@ -87,7 +87,7 @@ _goto_resolve_db() _goto_usage() { cat <<\USAGE -usage: goto [