From fd8ef131627435581225c9f0e99a6766bd7295cc Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Wed, 2 Apr 2025 15:55:34 -0300 Subject: [PATCH] Fix zsh script --- dot_config/eget/eget.toml | 11 ++++++++--- dot_config/zsh/dot_zshrc | 10 +++++----- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/dot_config/eget/eget.toml b/dot_config/eget/eget.toml index 36a6b0b..3fe9f71 100644 --- a/dot_config/eget/eget.toml +++ b/dot_config/eget/eget.toml @@ -60,9 +60,10 @@ asset_filters = [ "^lgpl", "shared", "master", ".tar.xz" ] download_only = true # Shared libraries aren't extracted correctly, need to do in post install script -#["romkatv/zsh-bin"] -# asset_filters = [ "^asc" ] +["romkatv/zsh-bin"] + asset_filters = [ "^asc" ] # all = true + file = "bin/zsh" ["xyproto/gendesk"] asset_filters = [ "static" ] @@ -91,4 +92,8 @@ ["bootandy/dust"] asset_filters = [ "gnu", ".tar.gz" ] -["tealdeer-rs/tealdeer"] \ No newline at end of file +["tealdeer-rs/tealdeer"] + +["nushell/nushell"] + asset_filters = [ "musl", ".tar.gz" ] + all = true diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index b5051a2..3aae6ce 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -46,10 +46,10 @@ function .add { chezmoi add "$1" chezmoi git add . chezmoi git status - read -p "Commit changes? [y/N] " -r answer + read -r "Commit changes? [y/N] " answer if [[ $answer =~ ^[Yy]$ ]]; then chezmoi git commit -- -am "$2" - read -p "Push changes? [y/N] " -r answer + read -r "Push changes? [y/N] " answer if [[ $answer =~ ^[Yy]$ ]]; then chezmoi git push fi @@ -64,10 +64,10 @@ function .re-add { chezmoi re-add chezmoi git status chezmoi git diff - read -p "Commit changes? [y/N] " -r answer - if [[ $answer =~ ^[Yy]$ ]]; theno + read -r "?Commit changes? [y/N] " answer + if [[ $answer =~ ^[Yy]$ ]]; then chezmoi git commit -- -am "$1" - read -p "Push changes? [y/N] " -r answer + read -r "?Push changes? [y/N] " answer if [[ $answer =~ ^[Yy]$ ]]; then chezmoi git push fi