diff --git a/.github/workflows/flake-update.yml b/.github/workflows/flake-update.yml index b4cf625..592693f 100644 --- a/.github/workflows/flake-update.yml +++ b/.github/workflows/flake-update.yml @@ -13,16 +13,9 @@ jobs: - name: Install Nix uses: DeterminateSystems/nix-installer-action@v12 - name: Update flake lock - id: update - uses: DeterminateSystems/update-flake-lock@v22 - with: - pr-title: "Update flake.lock" - pr-labels: | - dependencies - automated - - name: merge - run: | - gh pr merge ${{ steps.update.outputs.pull-request-number }} --squash --delete-branch - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run : | + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + nix flake update --commit-lock-file + git push origin HEAD:${{ github.ref_name }} diff --git a/modules/shell.nix b/modules/shell.nix index 80ff471..7903f3b 100644 --- a/modules/shell.nix +++ b/modules/shell.nix @@ -64,6 +64,11 @@ histSize = 10000; histFile = "$HOME/.cache/zsh_history"; interactiveShellInit = '' + ### zsh-history-substring-search ### + setopt HIST_IGNORE_ALL_DUPS + source ${pkgs.zsh-history-substring-search}/share/zsh-history-substring-search/zsh-history-substring-search.zsh + bindkey '^[[A' history-substring-search-up + bindkey '^[[B' history-substring-search-down ### fzf-tab ### source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh ### pager ###