shell-gpt
This commit is contained in:
parent
ba10fc4643
commit
bf43822a38
@ -43,7 +43,7 @@ function sss
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ss
|
function ss
|
||||||
python3 ~/.config/scripts/ss.py $argv
|
python3 ~/.config/scripts/ss.py --model gpt-4 $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
function s
|
function s
|
||||||
|
@ -11,6 +11,7 @@ def main():
|
|||||||
sgpt_options_parser.add_argument('--no-cache', action="store_true")
|
sgpt_options_parser.add_argument('--no-cache', action="store_true")
|
||||||
sgpt_options_parser.add_argument('--chat', type=str)
|
sgpt_options_parser.add_argument('--chat', type=str)
|
||||||
sgpt_options_parser.add_argument('-s', '--shell', action='store_true')
|
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('--code', action='store_true')
|
||||||
sgpt_options_parser.add_argument('--no-code', action='store_true')
|
sgpt_options_parser.add_argument('--no-code', action='store_true')
|
||||||
sgpt_options_parser.add_argument('--editor', action="store_true")
|
sgpt_options_parser.add_argument('--editor', action="store_true")
|
||||||
|
@ -44,16 +44,16 @@ $Green##########################################################################
|
|||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
{{ if eq .chezmoi.os "darwin" -}}
|
{{ if eq .chezmoi.os "darwin" -}}
|
||||||
brew install -q $BASE_PACKAGES
|
brew install -q $BASE_PACKAGES python
|
||||||
|
|
||||||
{{ else if eq .chezmoi.osRelease.id "fedora" -}}
|
{{ 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" -}}
|
{{ 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" -}}
|
{{ 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 -}}
|
{{ end -}}
|
||||||
|
|
||||||
@ -71,7 +71,6 @@ $Green##########################################################################
|
|||||||
## Install nix packet manager (single user) ##
|
## Install nix packet manager (single user) ##
|
||||||
## ##
|
## ##
|
||||||
###############################################################################$NC"
|
###############################################################################$NC"
|
||||||
sleep 3
|
|
||||||
bash <(curl -L https://nixos.org/nix/install) --no-daemon
|
bash <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||||
. ~/.nix-profile/etc/profile.d/nix.sh
|
. ~/.nix-profile/etc/profile.d/nix.sh
|
||||||
fi
|
fi
|
||||||
@ -142,6 +141,7 @@ sleep 3
|
|||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
pip install shell-gpt
|
||||||
|
|
||||||
## Install fisher plugin manager for fish, so that we may update in after plugin list sync by chezmoi
|
## Install fisher plugin manager for fish, so that we may update in after plugin list sync by chezmoi
|
||||||
if ! fish -c fisher &>/dev/null
|
if ! fish -c fisher &>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user