V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 55s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 55s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#!/bin/bash
|
||||
# SPDX-Version: 3.0
|
||||
# SPDX-CreationInfo: 2025-06-17; WEIDNER, Marc S.; <msw@coresecret.dev>
|
||||
# SPDX-ExternalRef: GIT https://git.coresecret.dev/msw/CISS.debian.installer.git
|
||||
@@ -22,12 +21,15 @@ else
|
||||
fi
|
||||
export PATH
|
||||
|
||||
trap ' "${SHELL}" "${HOME}/.ciss/clean_logout.sh" ' 0
|
||||
trap ' "${SHELL}" "${HOME}/.ciss/clean_logout.sh" ' EXIT
|
||||
. "${HOME}/.ciss/alias"
|
||||
. "${HOME}/.ciss/f2bchk.sh"
|
||||
. "${HOME}/.ciss/scan_libwrap"
|
||||
. "${HOME}/.ciss/shortcuts"
|
||||
|
||||
### Never use 'errexit' | 'nounset' | 'pipefail' in interactive shells.
|
||||
set +o errexit +o nounset +o pipefail
|
||||
|
||||
### Preferred editor for local and remote sessions.
|
||||
export EDITOR="nano"
|
||||
|
||||
@@ -51,7 +53,7 @@ export HISTSIZE="16384"
|
||||
export HISTTIMEFORMAT='%F %T %z '
|
||||
|
||||
# Optional, cautious filters (avoids trivial leaks, but not foolproof). Caution: HISTIGNORE is coarse-grained, don't overdo it.
|
||||
export HISTIGNORE='*PASS*:*pass*:*secret*:*token*:*API_KEY*'
|
||||
export HISTIGNORE='*PASS*:*pass*:*secret*:*token*:*API_KEY*:*'
|
||||
|
||||
# With only histappend, entries can be lost or merge with each other in the event of a crash or multiple sessions.
|
||||
# "-a": Appends new entries from RAM to the file.
|
||||
@@ -108,25 +110,25 @@ export PS1="\
|
||||
|
||||
### Overwrite Protection.
|
||||
set -o noclobber
|
||||
alias cp="cp -iv"
|
||||
alias cp='cp -iv'
|
||||
alias mv='mv -iv'
|
||||
alias rm='rm -iv'
|
||||
|
||||
### Welcome message after login.
|
||||
printf "\n"
|
||||
printf "\e[91m🔐 Coresecret Channel Established. \e[0m\n"
|
||||
printf "\e[92m✅ Welcome back\e[0m"; printf "\e[95m '%s' \e[0m" "${USER}"; printf "\e[92m! Type\e[0m"; printf "\e[95m 'celp'\e[0m"; printf "\e[92m for shortcuts. \e[0m\n"
|
||||
printf "\n"
|
||||
printf "\n"
|
||||
#printf "\n"
|
||||
#printf "\e[91m🔐 Coresecret Channel Established. \e[0m\n"
|
||||
#printf "\e[92m✅ Welcome back\e[0m"; printf "\e[95m '%s' \e[0m" "${USER}"; printf "\e[92m! Type\e[0m"; printf "\e[95m 'celp'\e[0m"; printf "\e[92m for shortcuts. \e[0m\n"
|
||||
#printf "\n"
|
||||
#printf "\n"
|
||||
|
||||
#printf "\n"
|
||||
#printf "%b🔐 Coresecret Channel Established. %b%b" "${CRED}" "${CRES}" "${NL}"
|
||||
#printf "%b✅ Welcome back %b " "${CGRE}" "${CRES}"
|
||||
#printf "%b'%s'%b" "${CMAG}" "${USER}" "${CRES}"
|
||||
#printf "%b! Type%b " "${CGRE}" "${CRES}"
|
||||
#printf "%b'celp'%b " "${CMAG}" "${CRES}"
|
||||
#printf "%bfor shortcuts. %b%b" "${CGRE}" "${CRES}" "${NL}"
|
||||
#printf "\n"
|
||||
#printf "\n"
|
||||
printf "\n"
|
||||
printf "%b🔐 Coresecret Channel Established. %b%b" "${CRED}" "${CRES}" "${NL}"
|
||||
printf "%b✅ Welcome back %b " "${CGRE}" "${CRES}"
|
||||
printf "%b'%s'%b" "${CMAG}" "${USER}" "${CRES}"
|
||||
printf "%b! Type%b" "${CGRE}" "${CRES}"
|
||||
printf "%b 'celp'%b" "${CMAG}" "${CRES}"
|
||||
printf "%b for shortcuts. %b%b" "${CGRE}" "${CRES}" "${NL}"
|
||||
printf "\n"
|
||||
printf "\n"
|
||||
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
|
||||
@@ -120,13 +120,16 @@ source ${ZSH}/oh-my-zsh.sh
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
|
||||
### Added by CISS.debian.hardening-Installer ###
|
||||
trap ' "${SHELL}" "${HOME}/.ciss/clean_logout.sh" ' 0
|
||||
trap ' "${SHELL}" "${HOME}/.ciss/clean_logout.sh" ' EXIT
|
||||
. "${HOME}/.ciss/alias"
|
||||
. "${HOME}/.ciss/shortcuts"
|
||||
. "${HOME}/.ciss/scan_libwrap"
|
||||
. /usr/share/doc/fzf/examples/key-bindings.zsh
|
||||
. /usr/share/doc/fzf/examples/completion.zsh
|
||||
|
||||
### Never use 'errexit' | 'nounset' | 'pipefail' in interactive shells.
|
||||
set +o errexit +o nounset +o pipefail
|
||||
|
||||
### Define colors for bash prompt
|
||||
export CRED='\033[1;91m'
|
||||
export CGRE='\033[1;92m'
|
||||
|
||||
Reference in New Issue
Block a user