From 83f7fe4b8402bab171d110703a1b1115efbc9b28 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Tue, 14 Apr 2026 22:32:43 +0200 Subject: cleaned up many scrits and deleted some that were of no use; renamed a lot --- .../profile.d/70-systemd-shell-extra.sh | 25 ----------------- .../environment/profile.d/bash_completion.sh | 16 ----------- straper/db/public/environment/profile.d/gawk.csh | 11 -------- straper/db/public/environment/profile.d/gawk.sh | 31 ---------------------- 4 files changed, 83 deletions(-) delete mode 100644 straper/db/public/environment/profile.d/70-systemd-shell-extra.sh delete mode 100644 straper/db/public/environment/profile.d/bash_completion.sh delete mode 100644 straper/db/public/environment/profile.d/gawk.csh delete mode 100644 straper/db/public/environment/profile.d/gawk.sh (limited to 'straper/db/public/environment/profile.d') diff --git a/straper/db/public/environment/profile.d/70-systemd-shell-extra.sh b/straper/db/public/environment/profile.d/70-systemd-shell-extra.sh deleted file mode 100644 index dae77e4..0000000 --- a/straper/db/public/environment/profile.d/70-systemd-shell-extra.sh +++ /dev/null @@ -1,25 +0,0 @@ -# shellcheck shell=sh - -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. - -# Import the additional shell prompt prefix and suffix strings into $PS1, and -# show the shell welcome string. These can be provisioned as system or service -# credentials shell.prompt.prefix, shell.prompt.suffix and shell.welcome, and -# are propagated into these environment variables by pam_systemd(8). - -if [ -n "${SHELL_PROMPT_PREFIX-}" ]; then - PS1="$SHELL_PROMPT_PREFIX$PS1" -fi - -if [ -n "${SHELL_PROMPT_SUFFIX-}" ]; then - PS1="$PS1$SHELL_PROMPT_SUFFIX" -fi - -if [ -n "${SHELL_WELCOME-}" ]; then - printf '%b\n' "$SHELL_WELCOME" -fi diff --git a/straper/db/public/environment/profile.d/bash_completion.sh b/straper/db/public/environment/profile.d/bash_completion.sh deleted file mode 100644 index 8c031cf..0000000 --- a/straper/db/public/environment/profile.d/bash_completion.sh +++ /dev/null @@ -1,16 +0,0 @@ -# shellcheck shell=sh disable=SC1091,SC2166,SC2268,SC3028,SC3044,SC3054 -# Check for interactive bash and that we haven't already been sourced. -if [ "x${BASH_VERSION-}" != x -a "x${PS1-}" != x -a "x${BASH_COMPLETION_VERSINFO-}" = x ]; then - - # Check for recent enough version of bash. - if [ "${BASH_VERSINFO[0]}" -gt 4 ] || - [ "${BASH_VERSINFO[0]}" -eq 4 -a "${BASH_VERSINFO[1]}" -ge 2 ]; then - [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && - . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" - if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then - # Source completion code. - . /usr/share/bash-completion/bash_completion - fi - fi - -fi diff --git a/straper/db/public/environment/profile.d/gawk.csh b/straper/db/public/environment/profile.d/gawk.csh deleted file mode 100644 index 583d5bc..0000000 --- a/straper/db/public/environment/profile.d/gawk.csh +++ /dev/null @@ -1,11 +0,0 @@ -alias gawkpath_default 'unsetenv AWKPATH; setenv AWKPATH `gawk -v x=AWKPATH "BEGIN {print ENVIRON[x]}"`' - -alias gawkpath_prepend 'if (! $?AWKPATH) setenv AWKPATH ""; if ($AWKPATH == "") then; unsetenv AWKPATH; setenv AWKPATH `gawk -v x=AWKPATH "BEGIN {print ENVIRON[x]}"`; endif; setenv AWKPATH "\!*"":$AWKPATH"' - -alias gawkpath_append 'if (! $?AWKPATH) setenv AWKPATH ""; if ($AWKPATH == "") then; unsetenv AWKPATH; setenv AWKPATH `gawk -v x=AWKPATH "BEGIN {print ENVIRON[x]}"`; endif; setenv AWKPATH "$AWKPATH"":\!*"' - -alias gawklibpath_default 'unsetenv AWKLIBPATH; setenv AWKLIBPATH `gawk -v x=AWKLIBPATH "BEGIN {print ENVIRON[x]}"`' - -alias gawklibpath_prepend 'if (! $?AWKLIBPATH) setenv AWKLIBPATH ""; if ($AWKLIBPATH == "") then; unsetenv AWKLIBPATH; setenv AWKLIBPATH `gawk -v x=AWKLIBPATH "BEGIN {print ENVIRON[x]}"`; endif; setenv AWKLIBPATH "\!*"":$AWKLIBPATH"' - -alias gawklibpath_append 'if (! $?AWKLIBPATH) setenv AWKLIBPATH ""; if ($AWKLIBPATH == "") then; unsetenv AWKLIBPATH; setenv AWKLIBPATH `gawk -v x=AWKLIBPATH "BEGIN {print ENVIRON[x]}"`; endif; setenv AWKLIBPATH "$AWKLIBPATH"":\!*"' diff --git a/straper/db/public/environment/profile.d/gawk.sh b/straper/db/public/environment/profile.d/gawk.sh deleted file mode 100644 index c35471f..0000000 --- a/straper/db/public/environment/profile.d/gawk.sh +++ /dev/null @@ -1,31 +0,0 @@ -gawkpath_default () { - unset AWKPATH - export AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'` -} - -gawkpath_prepend () { - [ -z "$AWKPATH" ] && AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'` - export AWKPATH="$*:$AWKPATH" -} - -gawkpath_append () { - [ -z "$AWKPATH" ] && AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'` - export AWKPATH="$AWKPATH:$*" -} - -gawklibpath_default () { - unset AWKLIBPATH - export AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'` -} - -gawklibpath_prepend () { - [ -z "$AWKLIBPATH" ] && \ - AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'` - export AWKLIBPATH="$*:$AWKLIBPATH" -} - -gawklibpath_append () { - [ -z "$AWKLIBPATH" ] && \ - AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'` - export AWKLIBPATH="$AWKLIBPATH:$*" -} -- cgit v1.3