fish: acp (add commit push) & niri

This commit is contained in:
2025-11-23 04:52:49 +01:00
parent 7b6b31204d
commit d4b4904b0e
2 changed files with 13 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ input {
warp-mouse-to-focus warp-mouse-to-focus
// Focus windows and outputs automatically when moving the mouse into them. // 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************************/ /************************Output************************/

View File

@@ -85,8 +85,19 @@ alias ....='cd ../../..'
# grep # grep
alias grep="grep --color=auto" alias grep="grep --color=auto"
# others # others
if type -q tty-clock if type -q tty-clock
alias clock="tty-clock -c -C 4" alias clock="tty-clock -c -C 4"
end 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