Added shebangs, shellcheck configuration line

This commit is contained in:
Tobias Schmidl 2023-07-12 08:47:40 +02:00
parent e966123170
commit 05d2cbd709
8 changed files with 20 additions and 2 deletions

View file

@ -1,4 +1,5 @@
#! /bin/zsh
# shellcheck shell=bash
alias cdiff="colordiff"

View file

@ -1,3 +1,6 @@
#! /bin/zsh
# shellcheck shell=bash
alias bathelp='bat --plain --language=help'
unalias help
help() {

View file

@ -1,4 +1,5 @@
#! /bin/zsh
# shellcheck shell=bash
function escape() { perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$@"; }

View file

@ -1,2 +1,5 @@
#! /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; }

View file

@ -1,4 +1,5 @@
#! /bin/zsh
# shellcheck shell=bash
alias exa='exa -FHhg@ --git --binary --time-style long-iso'
alias exal='exa -l'

View file

@ -1,3 +1,6 @@
#! /bin/zsh
# shellcheck shell=bash
export FZF_COMPLETION_OPTS='--border --info=inline'
if [ -n "$TERMUX_VERSION" ] && [ -d "$PREFIX" ];

View file

@ -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"

View file

@ -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