mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
96ec0d5276
Add the `_colorls` completion file to the `zsh/` folder of the gem and make the `tab_complete.sh` script work for Zsh too.
9 lines
236 B
Bash
9 lines
236 B
Bash
|
|
if [ -z "${ZSH_VERSION+x}" ]; then
|
|
function _colorls_complete() {
|
|
COMPREPLY=( $( colorls --'*'-completion-bash="$2" ) )
|
|
}
|
|
complete -o default -F _colorls_complete colorls
|
|
else
|
|
fpath=("${0:A:h:h}/zsh" $fpath)
|
|
fi
|