From d4b4904b0e513eabf28bc83734533717e3c37860 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Sun, 23 Nov 2025 04:52:49 +0100 Subject: [PATCH] fish: acp (add commit push) & niri --- config/niri/.config/niri/config.kdl | 2 +- config/shell/.config/fish/post.d/alias.fish | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/config/niri/.config/niri/config.kdl b/config/niri/.config/niri/config.kdl index d47ebcb..e0a3fb2 100644 --- a/config/niri/.config/niri/config.kdl +++ b/config/niri/.config/niri/config.kdl @@ -27,7 +27,7 @@ input { warp-mouse-to-focus // Focus windows and outputs automatically when moving the mouse into them. - focus-follows-mouse max-scroll-amount="99%" + focus-follows-mouse max-scroll-amount="100%" } /************************Output************************/ diff --git a/config/shell/.config/fish/post.d/alias.fish b/config/shell/.config/fish/post.d/alias.fish index 717d17d..ba18123 100644 --- a/config/shell/.config/fish/post.d/alias.fish +++ b/config/shell/.config/fish/post.d/alias.fish @@ -85,8 +85,19 @@ alias ....='cd ../../..' # grep alias grep="grep --color=auto" - # others if type -q tty-clock alias clock="tty-clock -c -C 4" end + +if type -q git + function acp + git add . || return 1 + if test (count $argv) -eq 0 + git commit -m "." || return 1 + else + git commit -m "$argv" || return 1 + end + git push + end +end