Compare commits
2 Commits
c58b27fe29
...
12449788a6
Author | SHA1 | Date | |
---|---|---|---|
12449788a6
|
|||
3b6c18395b
|
@@ -29,6 +29,7 @@
|
|||||||
!/.config/zsh/alias/k8s.zsh
|
!/.config/zsh/alias/k8s.zsh
|
||||||
!/.config/zsh/alias/kconfig.zsh
|
!/.config/zsh/alias/kconfig.zsh
|
||||||
!/.config/zsh/alias/ls.zsh
|
!/.config/zsh/alias/ls.zsh
|
||||||
|
!/.config/zsh/alias/openwrt.zsh
|
||||||
!/.config/zsh/alias/quilt.zsh
|
!/.config/zsh/alias/quilt.zsh
|
||||||
!/.config/zsh/alias/sbuild.zsh
|
!/.config/zsh/alias/sbuild.zsh
|
||||||
!/.config/zsh/alias/sudo.zsh
|
!/.config/zsh/alias/sudo.zsh
|
||||||
|
@@ -6,6 +6,7 @@ alias gds='git diff -p --stat=200 '
|
|||||||
alias gdu='git-dir-usage '
|
alias gdu='git-dir-usage '
|
||||||
alias ggc='git-gc '
|
alias ggc='git-gc '
|
||||||
alias ggcf='git-gc-force '
|
alias ggcf='git-gc-force '
|
||||||
|
alias gst='git status -s '
|
||||||
|
|
||||||
git-dir-usage() {
|
git-dir-usage() {
|
||||||
local gitdir x topdir
|
local gitdir x topdir
|
||||||
@@ -73,3 +74,7 @@ git-archive-ref() {
|
|||||||
git-br() {
|
git-br() {
|
||||||
__z_git -c core.pager='cat' branch --no-abbrev "$@"
|
__z_git -c core.pager='cat' branch --no-abbrev "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
git-rebase-log() {
|
||||||
|
git log --format='pick %h # %s' --reverse "$@"
|
||||||
|
}
|
||||||
|
14
.config/zsh/alias/openwrt.zsh
Normal file
14
.config/zsh/alias/openwrt.zsh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
openwrt-apk-list() {
|
||||||
|
local i w
|
||||||
|
w=$(mktemp -d) ; : "${w:?}"
|
||||||
|
for i ; do
|
||||||
|
[ -n "$i" ] || continue
|
||||||
|
find "$w/" -mindepth 1 -maxdepth 1 -exec rm -rf {} +
|
||||||
|
find "$w/" -mindepth 1 -maxdepth 1 -exec rm -rf {} + || return
|
||||||
|
openwrt-apk extract --no-cache --no-logfile --no-network --no-check-certificate --allow-untrusted --no-chown --destination "$w" "$i"
|
||||||
|
env -C "$w" find ./ -mindepth 1 -exec ls -ldgG --color {} +
|
||||||
|
done
|
||||||
|
rm -rf "$w"
|
||||||
|
}
|
Reference in New Issue
Block a user