git: Rename zsh-autoload.sh -> external-script.sh
With the last commit 9c1e3f4679 (git:zsh-autoload: Use relative
scripts/ folder, 2025-09-12), `zsh-autoload.sh` could execute any type
of external script. Rename it to a more generic name.
This commit is contained in:
@@ -4,22 +4,22 @@
|
|||||||
addIgnoredFile = off
|
addIgnoredFile = off
|
||||||
detachedHead = off
|
detachedHead = off
|
||||||
[alias]
|
[alias]
|
||||||
# NOTE: git-zsh-autoload (./zsh-autoload.sh) is a small wrapper that
|
# NOTE: git-external-script (./external-script.sh) is a small wrapper
|
||||||
# launches autoloadable zsh functions (.config/zsh/autoload/git/*) in
|
# that launches external scripts from the ./scripts/ collection in the
|
||||||
# the right directory, as shell commands in git aliases are executed
|
# right directory, as shell commands in git aliases are executed from
|
||||||
# from the top-level directory of the repository.
|
# the top-level directory of the repository.
|
||||||
|
|
||||||
abort = "!git-zsh-autoload abort"
|
abort = "!git-external-script abort"
|
||||||
autosquash = -c sequence.editor=/bin/true rebase -i --autosquash
|
autosquash = -c sequence.editor=/bin/true rebase -i --autosquash
|
||||||
autofixup= autosquash
|
autofixup= autosquash
|
||||||
branch-rename = "!git-zsh-autoload branch-rename"
|
branch-rename = "!git-external-script branch-rename"
|
||||||
c = commit
|
c = commit
|
||||||
changes = flog HEAD...FETCH_HEAD
|
changes = flog HEAD...FETCH_HEAD
|
||||||
checkout-worktree = "!git-zsh-autoload checkout-worktree"
|
checkout-worktree = "!git-external-script checkout-worktree"
|
||||||
cow = checkout-worktree
|
cow = checkout-worktree
|
||||||
co = checkout
|
co = checkout
|
||||||
commit-last-msg = "!git-zsh-autoload commit-last-msg"
|
commit-last-msg = "!git-external-script commit-last-msg"
|
||||||
continue = "!git-zsh-autoload continue"
|
continue = "!git-external-script continue"
|
||||||
cont = continue
|
cont = continue
|
||||||
clm = commit-last-msg
|
clm = commit-last-msg
|
||||||
last-msg = commit-last-msg
|
last-msg = commit-last-msg
|
||||||
@@ -29,21 +29,21 @@
|
|||||||
ft = fetch-tags-only
|
ft = fetch-tags-only
|
||||||
filter-repo = !git-filter-repo
|
filter-repo = !git-filter-repo
|
||||||
fixes = log -1 --pretty=fixes
|
fixes = log -1 --pretty=fixes
|
||||||
glog = "!git-zsh-autoload glog"
|
glog = "!git-external-script glog"
|
||||||
https-and-ssh = "!git-zsh-autoload https-and-ssh"
|
https-and-ssh = "!git-external-script https-and-ssh"
|
||||||
ssh-and-https = https-and-ssh
|
ssh-and-https = https-and-ssh
|
||||||
l = log
|
l = log
|
||||||
last-changed = "!git-zsh-autoload last-changed"
|
last-changed = "!git-external-script last-changed"
|
||||||
ls = ls-files
|
ls = ls-files
|
||||||
make-fork = "!git-zsh-autoload make-fork"
|
make-fork = "!git-external-script make-fork"
|
||||||
p = push
|
p = push
|
||||||
perm-stash = "!git-zsh-autoload perm-stash"
|
perm-stash = "!git-external-script perm-stash"
|
||||||
root = rev-parse --show-toplevel
|
root = rev-parse --show-toplevel
|
||||||
signoff = rebase --signoff
|
signoff = rebase --signoff
|
||||||
ss = stash
|
ss = stash
|
||||||
ssync = "!git-zsh-autoload ssync"
|
ssync = "!git-external-script ssync"
|
||||||
submodule-rm = "!git-zsh-autoload submodule-rm"
|
submodule-rm = "!git-external-script submodule-rm"
|
||||||
track = "!git-zsh-autoload track"
|
track = "!git-external-script track"
|
||||||
branches = track
|
branches = track
|
||||||
[blame]
|
[blame]
|
||||||
date = short
|
date = short
|
||||||
|
|||||||
1
.local/bin/git-external-script
Symbolic link
1
.local/bin/git-external-script
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../.config/git/external-script.sh
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../.config/git/zsh-autoload.sh
|
|
||||||
Reference in New Issue
Block a user