diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index c367eec..bef2534 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -29,6 +29,7 @@ jobs: uses: edplato/trufflehog-actions-scan@master with: scanArguments: '--regex --entropy=False --max_depth=5 --rules /regexes.json' # Add custom options here* + ignore_paths: ./zsh/zshrc - name: detect secrets uses: edplato/trufflehog-actions-scan@v0.9l-beta diff --git a/scripts/initial.sh b/scripts/initial.sh deleted file mode 100644 index a943191..0000000 --- a/scripts/initial.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -os=$(cat /etc/fedora-release | awk '{printf "%s %s", $1, $3}') -rootUsed=$(df -h --output=used / | tail -n1 | tr -d ' \n') -rootTotal=$(df -h --output=size / | tail -n1 | tr -d ' \n') -memUsed=$(free -m | grep "Mem" | awk '{printf "%.1fG", $3/1000}') -memTotal=$(free -m | grep "Mem" | awk '{printf "%.fG", $2/1000}') -cpuTemp=$(sensors | grep CPU | awk '{print $2}' | sed 's/+//' | tr -d '\n') -loadAvg=$(cat /proc/loadavg | awk '{printf "%s %s %s", $1, $2, $3}') - -printf "$os" -printf "$rootUsed/$rootTotal  $memUsed/$memTotal  $cpuTemp 辰$loadAvg" \ No newline at end of file diff --git a/zsh/zshrc b/zsh/zshrc index 4a24a79..27502e4 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,3 +1,4 @@ +# shellcheck disable=all # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH export ZSH="$HOME/.oh-my-zsh"