fix(git): gitf case for adding and listing staged changes (#71)

Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/71
This commit is contained in:
Victor Westerlund 2025-12-02 10:52:38 +01:00
parent ec119ae599
commit 2fa3e8475d

View file

@ -127,10 +127,10 @@ mkd () {
# Short-hands for various git functions # Short-hands for various git functions
gitf () { gitf () {
case "$1" in case "$1" in
# Stage all changes and fall through to WIP commit # Stage and list changes to be committed
"aw") "a")
git add . git add $2
gitf w gitf
;; ;;
# Checkout [and create] a git branch (defaults to "master") # Checkout [and create] a git branch (defaults to "master")
@ -204,7 +204,7 @@ sshl () {
# | Tmux | # | Tmux |
# +------+ # +------+
# Tmux split commands, "q" for fast access, "w" for horizontal (right of q), "a" for vertical (below q) # Tmux split commands, "q" for fast access, "w" for horizontal (right of q), "a" for vertical (below q)
alias qw="tmux split-window -h" alias qw="tmux split-window -h"
alias qa="tmux split-window -v" alias qa="tmux split-window -v"