From 66e04d29b6ebeb9479de566bfb733273f8a752d8 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Thu, 6 Jul 2023 14:29:00 +0900 Subject: [PATCH] feat: add github-copilot-cli to zshrc --- .zshrc | 1 + zsh/github-copilot-cli.zsh | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 zsh/github-copilot-cli.zsh diff --git a/.zshrc b/.zshrc index 8b14dc7..e474dfd 100644 --- a/.zshrc +++ b/.zshrc @@ -196,6 +196,7 @@ source $HOME/dotfiles/zsh/keybindings.zsh source $HOME/dotfiles/zsh/alias.zsh source $HOME/dotfiles/zsh/env.zsh source $HOME/dotfiles/zsh/fzf.zsh +source $HOME/dotfiles/zsh/github-copilot-cli.zsh case `uname` in Darwin) diff --git a/zsh/github-copilot-cli.zsh b/zsh/github-copilot-cli.zsh new file mode 100644 index 0000000..5c2d796 --- /dev/null +++ b/zsh/github-copilot-cli.zsh @@ -0,0 +1,3 @@ +if command -v 1github-copilot-cli > /dev/null 2>&1; then + eval "$(github-copilot-cli alias -- "$0")" +fi