chore: editorconfig check

This commit is contained in:
Ben Grande 2024-07-08 19:59:27 +02:00
parent f94876f0f0
commit 5936b2059c
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56
8 changed files with 16 additions and 14 deletions

View File

@ -13,12 +13,14 @@ case "${1-}" in
-d|--disp) class="DispVM";; -d|--disp) class="DispVM";;
-s|--standalone) class="StandaloneVM";; -s|--standalone) class="StandaloneVM";;
"") true;; "") true;;
*) printf '%s\n' "usage: ${0##*/} [CLASS] *) # editorconfig-checker-disable
printf '%s\n' "usage: ${0##*/} [CLASS]
-A, --admin -A, --admin
-t, --template -t, --template
-a, --app -a, --app
-d, --disp -d, --disp
-s, --standalone" -s, --standalone"
# editorconfig-checker-enable
exit 1 exit 1
;; ;;
esac esac

View File

@ -147,7 +147,7 @@ complete -F _qvmcmd-runtrans qvm-kill
# complete n>=2 arguments with filenames # complete n>=2 arguments with filenames
_qvmcmd-any_state-filenames() { _qvmcmd-any_state-filenames() {
if [ "$(_get-cword-pos "${COMP_CWORD}")" = 1 ]; then if [ "$(_get-cword-pos "${COMP_CWORD}")" = 1 ]; then
_complete-qubes "any_state" _complete-qubes "any_state"
else else
_complete-filenames _complete-filenames
fi fi

View File

@ -9,7 +9,7 @@
[alias] [alias]
; https://git.wiki.kernel.org/index.php/Aliases ; https://git.wiki.kernel.org/index.php/Aliases
; https://github.com/schacon/gitscm/tree/master ; https://github.com/schacon/gitscm/tree/master
; Abbreviations ; Abbreviations
co = checkout co = checkout
br = branch br = branch

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com> # SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
# #
# SPDX-License-Identifier: AGPL-3.0-or-later # SPDX-License-Identifier: AGPL-3.0-or-later
@ -89,8 +89,8 @@ check_signed_push_keyring(){
done done
gpg_out="$("$gpg" --status-fd=1 --no-default-keyring \ gpg_out="$("$gpg" --status-fd=1 --no-default-keyring \
--homedir "${GIT_PUSH_CERT_PGPHOMEDIR}" \ --homedir "${GIT_PUSH_CERT_PGPHOMEDIR}" \
--verify "$cert_sig" "$cert_msg" 2>&1)" --verify "$cert_sig" "$cert_msg" 2>&1)"
gpg_ec="$?" gpg_ec="$?"
gpg_sig="$(echo "$gpg_out" | awk '/ GOODSIG /{print $3}')" gpg_sig="$(echo "$gpg_out" | awk '/ GOODSIG /{print $3}')"
if test "$gpg_ec" = "0"; then if test "$gpg_ec" = "0"; then

View File

@ -1,7 +1,7 @@
# dircolors # dircolors
## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe> ## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe>
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com> ## SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
## ##
## SPDX-License-Identifier: AGPL-3.0-or-later ## SPDX-License-Identifier: AGPL-3.0-or-later
@ -52,7 +52,7 @@ TERM xterm*
#RESET 0 # reset to "normal" color #RESET 0 # reset to "normal" color
DIR 01;34 # directory DIR 01;34 # directory
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
# numerical value, the color is as for the file pointed to.) # numerical value, the color is as for the file pointed to.)
# MULTIHARDLINK 00 # regular file with more than one link # MULTIHARDLINK 00 # regular file with more than one link
FIFO 33 # pipe FIFO 33 # pipe
SOCK 01;35 # socket SOCK 01;35 # socket

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe> ## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe>
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com> ## SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
## ##
## SPDX-License-Identifier: AGPL-3.0-or-later ## SPDX-License-Identifier: AGPL-3.0-or-later
@ -39,7 +39,7 @@ if has lsblk; then
alias lsblku='lsblk -o $_lsblk_options,UUID,PARTUUID' alias lsblku='lsblk -o $_lsblk_options,UUID,PARTUUID'
fi fi
if ! grep --color 2>&1 | grep -qE "(unrecognized|unknown) option" && if ! grep --color 2>&1 | grep -qE "(unrecognized|unknown) option" &&
! grep --exclude 2>&1 | grep -qE "(unrecognized|unknown) option" ! grep --exclude 2>&1 | grep -qE "(unrecognized|unknown) option"
then then
alias grep="grep --exclude='.*.swp' --exclude='*~' --color=auto" alias grep="grep --exclude='.*.swp' --exclude='*~' --color=auto"
fi fi
@ -127,7 +127,7 @@ fi
## }}} ## }}}
## {{{ Git ## {{{ Git
if { ! test -f /usr/share/whonix/marker && has git; } || if { ! test -f /usr/share/whonix/marker && has git; } ||
{ test -f /usr/share/whonix/marker && git -v >/dev/null 2>&1; } { test -f /usr/share/whonix/marker && git -v >/dev/null 2>&1; }
then then
## Whonix UWT wrapper circumvents the command existence check. ## Whonix UWT wrapper circumvents the command existence check.
alias g="git" alias g="git"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe> ## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope <https://tpo.pe>
## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com> ## SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
## ##
## SPDX-License-Identifier: AGPL-3.0-or-later ## SPDX-License-Identifier: AGPL-3.0-or-later
@ -158,7 +158,7 @@ zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*' use-compctl true zstyle ':completion:*' use-compctl true
zstyle ':completion:*' verbose true zstyle ':completion:*' verbose true
zstyle ':completion:*:*:-command-:*:*' file-patterns \ zstyle ':completion:*:*:-command-:*:*' file-patterns \
'*(#q-*):executables:Executables *(-/):directories:Directories' '*(#q-*):executables:Executables *(-/):directories:Directories'
zstyle -e ':completion:*:*:-command-:*:*' tag-order ' zstyle -e ':completion:*:*:-command-:*:*' tag-order '
reply=(" reply=("
executables:Executables:Executables executables:Executables:Executables

View File

@ -14,7 +14,7 @@ if has("gui_running")
endif endif
hi clear hi clear
if exists("syntax_on") if exists("syntax_on")
syntax reset syntax reset
endif endif
let colors_name = "vividchalk" let colors_name = "vividchalk"