You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
627 B
Fish
15 lines
627 B
Fish
function __z_complete -d "add completions"
|
|
set -l __z_marks (string replace -r '\|.*' '' < $Z_DATA | string escape)
|
|
|
|
complete -c $Z_CMD -a "$__z_marks" -f
|
|
complete -c $ZO_CMD -a "$__z_marks" -f
|
|
|
|
complete -c $Z_CMD -s c -l clean -d "Cleans out $Z_DATA"
|
|
complete -c $Z_CMD -s e -l echo -d "Prints best match, no cd"
|
|
complete -c $Z_CMD -s l -l list -d "List matches, no cd"
|
|
complete -c $Z_CMD -s p -l purge -d "Purges $Z_DATA"
|
|
complete -c $Z_CMD -s r -l rank -d "Searches by rank, cd"
|
|
complete -c $Z_CMD -s t -l recent -d "Searches by recency, cd"
|
|
complete -c $Z_CMD -s h -l help -d "Print help"
|
|
end
|