From 05d2cbd709830b98081272c85908c8735a5c8548 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Wed, 12 Jul 2023 08:47:40 +0200 Subject: [PATCH] Added shebangs, shellcheck configuration line --- aliases.zsh | 1 + batcat.zsh | 3 +++ browser.zsh | 1 + debfunctions.zsh | 5 ++++- exa.zsh | 1 + fzf.zsh | 3 +++ systemd.zsh | 4 +++- zinit.zsh | 4 ++++ 8 files changed, 20 insertions(+), 2 deletions(-) diff --git a/aliases.zsh b/aliases.zsh index 1420563..da3bf1a 100644 --- a/aliases.zsh +++ b/aliases.zsh @@ -1,4 +1,5 @@ #! /bin/zsh +# shellcheck shell=bash alias cdiff="colordiff" diff --git a/batcat.zsh b/batcat.zsh index 2640bbb..d44984d 100644 --- a/batcat.zsh +++ b/batcat.zsh @@ -1,3 +1,6 @@ +#! /bin/zsh +# shellcheck shell=bash + alias bathelp='bat --plain --language=help' unalias help help() { diff --git a/browser.zsh b/browser.zsh index 7a8f618..0e575da 100644 --- a/browser.zsh +++ b/browser.zsh @@ -1,4 +1,5 @@ #! /bin/zsh +# shellcheck shell=bash function escape() { perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$@"; } diff --git a/debfunctions.zsh b/debfunctions.zsh index 5e1fe43..dfb7522 100644 --- a/debfunctions.zsh +++ b/debfunctions.zsh @@ -1,2 +1,5 @@ -# this is ripped off serverfault https://serverfault.com/a/90401 +#! /bin/zsh +# shellcheck shell=bash + +# this is ripped off serverfault https://serverfault.com/a/90401 function debchangedconfigs () { dpkg-query -W -f='${Conffiles}\n' '*' | awk 'OFS=" "{print $2,$1}' | LANG=C md5sum -c 2>/dev/null | awk -F': ' '$2 !~ /OK$/{print $1}' | sort; } diff --git a/exa.zsh b/exa.zsh index 44a8b98..a6c1057 100644 --- a/exa.zsh +++ b/exa.zsh @@ -1,4 +1,5 @@ #! /bin/zsh +# shellcheck shell=bash alias exa='exa -FHhg@ --git --binary --time-style long-iso' alias exal='exa -l' diff --git a/fzf.zsh b/fzf.zsh index a0ff03a..b86b474 100644 --- a/fzf.zsh +++ b/fzf.zsh @@ -1,3 +1,6 @@ +#! /bin/zsh +# shellcheck shell=bash + export FZF_COMPLETION_OPTS='--border --info=inline' if [ -n "$TERMUX_VERSION" ] && [ -d "$PREFIX" ]; diff --git a/systemd.zsh b/systemd.zsh index c98ed9c..9941dcf 100644 --- a/systemd.zsh +++ b/systemd.zsh @@ -1,3 +1,6 @@ +#! /bin/zsh +# shellcheck shell=bash + user_commands=( list-units is-active status show help list-unit-files is-enabled list-jobs show-environment cat list-timers @@ -16,4 +19,3 @@ for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done alias sc-enable-now="sc-enable --now" alias sc-disable-now="sc-disable --now" alias sc-mask-now="sc-mask --now" - diff --git a/zinit.zsh b/zinit.zsh index d8c40f2..0c84e60 100644 --- a/zinit.zsh +++ b/zinit.zsh @@ -1,3 +1,6 @@ +#! /bin/zsh +# shellcheck shell=bash + [ -z "$EDITOR" ] && export EDITOR=sensible-editor export LESS="-F -R" @@ -11,6 +14,7 @@ export LESS="-F -R" -z "$XDG_MUSIC_DIR" -a \ -z "$XDG_PICTURES_DIR" -a \ -z "$XDG_VIDEOS_DIR" ] && . "$HOME/.config/user-dirs.dirs" + export MAILCHECK=1 which fortune >/dev/null && which cowsay > /dev/null && fortune -e debian house-harkonnen house-atreides pratchett | cowsay -f tux -W 76 -n