shell-gpt

This commit is contained in:
Anton Volnuhin 2023-05-30 21:56:21 +03:00
parent ba10fc4643
commit bf43822a38
3 changed files with 7 additions and 6 deletions

View File

@ -43,7 +43,7 @@ function sss
end
function ss
python3 ~/.config/scripts/ss.py $argv
python3 ~/.config/scripts/ss.py --model gpt-4 $argv
end
function s

View File

@ -11,6 +11,7 @@ def main():
sgpt_options_parser.add_argument('--no-cache', action="store_true")
sgpt_options_parser.add_argument('--chat', type=str)
sgpt_options_parser.add_argument('-s', '--shell', action='store_true')
sgpt_options_parser.add_argument('-d', '--describe-shell', action='store_true')
sgpt_options_parser.add_argument('--code', action='store_true')
sgpt_options_parser.add_argument('--no-code', action='store_true')
sgpt_options_parser.add_argument('--editor', action="store_true")

View File

@ -44,16 +44,16 @@ $Green##########################################################################
sleep 3
{{ if eq .chezmoi.os "darwin" -}}
brew install -q $BASE_PACKAGES
brew install -q $BASE_PACKAGES python
{{ else if eq .chezmoi.osRelease.id "fedora" -}}
sudo dnf install $BASE_PACKAGES kitty-terminfo util-linux-user -y
sudo dnf install $BASE_PACKAGES kitty-terminfo util-linux-user python3-pip -y
{{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}}
sudo apt install $BASE_PACKAGES kitty-terminfo -y
sudo apt install $BASE_PACKAGES kitty-terminfo python3-pip -y
{{ else if eq .chezmoi.osRelease.id "arch" -}}
sudo pacman -Sy --noconfirm $BASE_PACKAGES kitty-terminfo
sudo pacman -Sy --noconfirm $BASE_PACKAGES kitty-terminfo python3-pip
{{ end -}}
@ -71,7 +71,6 @@ $Green##########################################################################
## Install nix packet manager (single user) ##
## ##
###############################################################################$NC"
sleep 3
bash <(curl -L https://nixos.org/nix/install) --no-daemon
. ~/.nix-profile/etc/profile.d/nix.sh
fi
@ -142,6 +141,7 @@ sleep 3
{{ end -}}
pip install shell-gpt
## Install fisher plugin manager for fish, so that we may update in after plugin list sync by chezmoi
if ! fish -c fisher &>/dev/null