mirror of
https://github.com/iridakos/goto.git
synced 2025-05-20 09:20:12 -07:00
align columns
use column in _goto_list_aliases fix column in _goto_list_aliases to actually work
This commit is contained in:
parent
ab3d10c659
commit
46b849083f
4
goto.sh
4
goto.sh
@ -125,7 +125,7 @@ _goto_list_aliases()
|
|||||||
{
|
{
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
if [ -f "$GOTO_DB" ]; then
|
if [ -f "$GOTO_DB" ]; then
|
||||||
sed '/^\s*$/d' "$GOTO_DB" 2>/dev/null
|
column -t "$GOTO_DB" 2>/dev/null
|
||||||
else
|
else
|
||||||
echo "You haven't configured any directory aliases yet."
|
echo "You haven't configured any directory aliases yet."
|
||||||
fi
|
fi
|
||||||
@ -295,7 +295,7 @@ _goto_print_similar()
|
|||||||
similar=$(sed -n "/^$1[^ ]* .*/p" "$GOTO_DB" 2>/dev/null)
|
similar=$(sed -n "/^$1[^ ]* .*/p" "$GOTO_DB" 2>/dev/null)
|
||||||
if [ -n "$similar" ]; then
|
if [ -n "$similar" ]; then
|
||||||
(>&2 echo "Did you mean:")
|
(>&2 echo "Did you mean:")
|
||||||
(>&2 echo "$similar" | column -t)
|
(>&2 echo "$(echo "$similar" | column -t)")
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user