diff --git a/private_dot_config/private_fish/config.fish b/private_dot_config/private_fish/config.fish index 5f48906..2e5e849 100644 --- a/private_dot_config/private_fish/config.fish +++ b/private_dot_config/private_fish/config.fish @@ -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 diff --git a/private_dot_config/scripts/executable_ss.py b/private_dot_config/scripts/executable_ss.py index c4e9956..a6a9a51 100644 --- a/private_dot_config/scripts/executable_ss.py +++ b/private_dot_config/scripts/executable_ss.py @@ -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") diff --git a/run_onchange_before_install_main_deps.sh.tmpl b/run_onchange_before_install_main_deps.sh.tmpl index 6e507c1..db0f9b5 100644 --- a/run_onchange_before_install_main_deps.sh.tmpl +++ b/run_onchange_before_install_main_deps.sh.tmpl @@ -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