bind \cg '__ghq_crtl_g'
if bind -M insert >/dev/null ^/dev/null
    bind -M insert \cg '__ghq_crtl_g'
end

bind \cg '__ghq_crtl_g'
if bind -M insert >/dev/null 2>/dev/null
    bind -M insert \cg '__ghq_crtl_g'
end

Use "2>" to redirect stderr instead of the deprecated "^"
Use "2>" to redirect stderr instead of the deprecated "^"

See this GH issue for more information:

https://github.com/fish-shell/fish-shell/issues/4394

decors/fish-ghq