config/shell: use fossil

This commit is contained in:
xeruf 2022-05-10 10:11:46 +02:00
parent f987d72b54
commit 2a75a1d4bc
2 changed files with 14 additions and 6 deletions

View File

@ -8,6 +8,7 @@ then
alias -g X1="| xargs -d '\n' -n 1" alias -g X1="| xargs -d '\n' -n 1"
alias -g XC="| xclip -selection clipboard" alias -g XC="| xclip -selection clipboard"
alias -g L="--color=always | ${PAGER:-less}" alias -g L="--color=always | ${PAGER:-less}"
alias -g T=" | tree --color --fromfile . | less -F"
# Edit zsh completion # Edit zsh completion
edcomp() { edcomp() {
@ -218,7 +219,10 @@ u() {
} }
# Networking # Networking
alias dns="drill any @8.8.8.8 -Q" dns() {
drill A @8.8.8.8 -Q "$@"
drill AAAA @8.8.8.8 -Q "$@"
}
alias delta="sudo systemctl restart openvpn-client@deltaPeak.service || jcl --unit openvpn-client@deltaPeak.service" alias delta="sudo systemctl restart openvpn-client@deltaPeak.service || jcl --unit openvpn-client@deltaPeak.service"
sshl() { sshl() {
test "$1" = "-a" && shift && local all=true test "$1" = "-a" && shift && local all=true
@ -252,6 +256,8 @@ alias omd="(echo '#+OPTIONS: tags:nil'; xclip -o -selection clipboard) | pandoc
alias mdo="pandoc -f gfm-ascii_identifiers-gfm_auto_identifiers -t org-auto_identifiers --wrap preserve" alias mdo="pandoc -f gfm-ascii_identifiers-gfm_auto_identifiers -t org-auto_identifiers --wrap preserve"
alias mdox="xclip -o -selection clipboard | mdo | xclip -filter" alias mdox="xclip -o -selection clipboard | mdo | xclip -filter"
alias f="fossil"
alias gdiff='git diff --word-diff=color --word-diff-regex=. --no-index' alias gdiff='git diff --word-diff=color --word-diff-regex=. --no-index'
# Default grep with some niceties # Default grep with some niceties
@ -343,13 +349,15 @@ killJava() {
alias l="ls -l --almost-all --human-readable --group-directories-first --file-type" alias l="ls -l --almost-all --human-readable --group-directories-first --file-type"
if which fd >/dev/null if which fd >/dev/null
then alias f="noglob fn --color=always " then fn() { $(which fd >/dev/null && echo fd || echo fdfind) --hidden --no-ignore-vcs --one-file-system "$@" | less -F; } # [F]ind [n]o ignore
fn() { $(which fd >/dev/null && echo fd || echo fdfind) --hidden --no-ignore-vcs --one-file-system "$@" | less -F; } alias ff="noglob fn --color=always " # [F]ind [F]ile
compdef f=fd compdef ff=fd
compdef fn=fd compdef fn=fd
else else
alias f='find -not -path "*.sync*" -and -not \( -name daten -prune \)' alias ff='find -not -path "*.sync*" -and -not \( -name daten -prune \)'
alias f1='find -mindepth 1 -maxdepth 1' alias f1='find -mindepth 1 -maxdepth 1'
compdef ff=find
compdef f1=find
fi fi
lowercase_transliterate="y/A-Z /a-z-/" lowercase_transliterate="y/A-Z /a-z-/"

View File

@ -11,7 +11,7 @@ case $1 in
info --vi-keys $(test "$last" != zsh && echo "--index-search=$last") zsh || info --vi-keys $(test "$last" != zsh && echo "--index-search=$last") zsh ||
LESS="$LESS +/^ *$last *\\[" man zshall;; LESS="$LESS +/^ *$last *\\[" man zshall;;
(gh|chordpro|bat|pdfjam|reflector|topgrade|r128gain|7z|kubectl) unbuffer "$@" --help | $paginate;; (gh|chordpro|bat|pdfjam|reflector|topgrade|r128gain|7z|kubectl) unbuffer "$@" --help | $paginate;;
(caddy|stretchly|go) "$1" help "${@:2}" | $paginate;; (caddy|stretchly|go|fossil) "$1" help "${@:2}" | $paginate;;
(rails) { rails -H && rails --help; } | $paginate;; (rails) { rails -H && rails --help; } | $paginate;;
(plantuml) unbuffer "$@" -help | $paginate;; (plantuml) unbuffer "$@" -help | $paginate;;
(vlc) unbuffer vlc --full-help "${@:2}" | $paginate;; (vlc) unbuffer vlc --full-help "${@:2}" | $paginate;;