makes https complete as http

master
Jonathan Hodgson 1 year ago
parent 954642753f
commit 993f76534d
  1. 13
      shells/zsh/includes/completion.zsh

@ -2,6 +2,10 @@ fpath=("${ZSH_FOLDER}completion" $fpath)
# Make completion work
autoload -U compinit
autoload bashcompinit
bashcompinit
zstyle ':completion:*' menu select
## Auto complete with case insenstivity and allowing some characters to be
#forgotten at the start like a .
@ -23,6 +27,11 @@ zstyle ':completion:*' verbose yes
# Improve tab completion for encrypt and decrypt funcitons
zstyle ':completion:*:decrypt:*' file-patterns '*.(pgp|gpg)'
zstyle ':completion:*:encrypt:*' ignored-patterns '*.(pgp|gpg)'
zstyle ':completion:*:reportGenerator:*' file-patterns '*.(json)'
# OPENAPI
zstyle -e ':completion:*' urls '[ -n "$OPENAPI" ] && [ -f "$OPENAPI" ] && reply=( $(openapi -j "$OPENAPI" urls) )'
export LISTMAX=-1
@ -42,8 +51,8 @@ compdef sshrc=ssh
compdef v=vim
compdef vi=vim
#autoload bashcompinit
#bashcompinit
compdef https=http
# Include hidden files in autocomplete:
_comp_options+=(globdots)

Loading…
Cancel
Save