fish: acp (add commit push) & niri
This commit is contained in:
@@ -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************************/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user