mirror of
https://github.com/iridakos/goto.git
synced 2025-05-16 15:30:22 -07:00
parent
8a6fc50212
commit
d1e7c194e9
12
goto.bash
12
goto.bash
@ -216,10 +216,16 @@ function _complete_goto_aliases()
|
||||
# remove the filenames attribute from the completion method
|
||||
compopt +o filenames 2>/dev/null
|
||||
|
||||
matches[$i]="$(echo ${matches[$i]} | sed 's/[\t]/ /g')"
|
||||
matches[$i]=$(printf '%*s' "-$COLUMNS" "${matches[$i]}")
|
||||
if ! [[ $(uname -s) =~ Darwin* ]]; then
|
||||
matches[$i]="$(echo ${matches[$i]} | sed 's/[\t]/ /g')"
|
||||
matches[$i]=$(printf '%*s' "-$COLUMNS" "${matches[$i]}")
|
||||
|
||||
COMPREPLY+=($(compgen -W "${matches[$i]}"))
|
||||
COMPREPLY+=($(compgen -W "${matches[$i]}"))
|
||||
else
|
||||
al=$(echo ${matches[$i]} | sed 's/[\t ].*//')
|
||||
|
||||
COMPREPLY+=($(compgen -W "$al"))
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user