diff --git a/aliases/functions b/aliases/functions index bc7737c..4b1c4d9 100644 --- a/aliases/functions +++ b/aliases/functions @@ -366,10 +366,18 @@ if [[ $DISPLAY ]] && xinput | grep -q Wacom && xrandr | grep -q eDP1; then } fi -# vim: foldmethod=marker - function lastdl() { echo ~/downloads/*(oc.[1]) } alias mpvu="noglob mpv" + +# copilot +function gh-copilot-cli() { + local tpe="$1"; shift + gh copilot suggest -t $tpe "$*" +} + +alias C="gh-copilot-cli shell" +alias Cgit="gh-copilot-cli git" +alias Cgh="gh-copilot-cli gh"