config/git: small alias fixes

This commit is contained in:
xerus2000 2021-01-03 15:01:11 +01:00
parent 19da4d5723
commit 19b66cfa46
4 changed files with 5 additions and 4 deletions

View File

@ -123,7 +123,7 @@
# COMMIT SHORTHANDS
cme = commit -v --edit --message
# yadm
cgit = !yadm cme "config/git:" -- $XDG_CONFIG_HOME/git/config $CONFIG_SHELLS/git $HOME/.local/bin/git-*
cgit = !yadm cme "config/git:" -- $XDG_CONFIG_HOME/git $CONFIG_SHELLS/git $HOME/.local/bin/git-*
cvim = !yadm cme "config/nvim:" -- $XDG_CONFIG_HOME/nvim/init*
cshell = !yadm cme "config/shell:" -- $CONFIG_SHELLS
cbin = !yadm cme "bin:" -- $HOME/.local/bin

View File

@ -8,6 +8,7 @@
.idea/caches
.idea/markdown-*
.idea/compiler.xml
.idea/kotlinc.xml
.idea/misc.xml
.idea/modules.xml
.idea/encodings.xml

View File

@ -135,8 +135,8 @@ git-withdate() {
gitedit() {
git stash
gitcommits -q $1
git reset --hard $1
git stash pop -q
git reset --keep $1
git stash pop
git-withdate $1 commit --all --amend "${@:2}"
gitcommits
}

View File

@ -1,5 +1,5 @@
#!/bin/sh
# Interactive rebase onto the remote
remote="$1"
shift
test $# -gt 0 && shift
git rebase -i ${remote:-'@{push}'} "$@"