From 36ca59b885e091bcd1276936fa8d4fb8d827f457 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Tue, 24 Jan 2023 07:54:12 +0000 Subject: [PATCH] Update 5 files - /home/private_dot_config/npm/npmrc.tmpl.TODO - /home/dot_local/bin/executable_plymouth-preview - /home/.chezmoiscripts/universal/run_onchange_after_100-cleanup.tmpl - /home/private_dot_config/npm/config/npm-init.js - /home/private_dot_config/npm/npmrc.tmpl --- .../run_onchange_after_100-cleanup.tmpl | 18 +++++++++++ .../dot_local/bin/executable_plymouth-preview | 30 +++++++++++++++++++ .../private_dot_config/npm/config/npm-init.js | 7 +++++ .../npm/{npmrc.tmpl.TODO => npmrc.tmpl} | 0 4 files changed, 55 insertions(+) create mode 100644 home/.chezmoiscripts/universal/run_onchange_after_100-cleanup.tmpl create mode 100644 home/dot_local/bin/executable_plymouth-preview create mode 100644 home/private_dot_config/npm/config/npm-init.js rename home/private_dot_config/npm/{npmrc.tmpl.TODO => npmrc.tmpl} (100%) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_100-cleanup.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_100-cleanup.tmpl new file mode 100644 index 00000000..5f46ec10 --- /dev/null +++ b/home/.chezmoiscripts/universal/run_onchange_after_100-cleanup.tmpl @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +### Remove meta sudo file +if [ -f "$HOME/.sudo_as_admin_successful" ]; then + rm -f "$HOME/.sudo_as_admin_successful" +fi + +### Remove .bash_history file +# New dotfiles specify this to be kept in the ~/.local folder +if [ -f "$HOME/.bash_history" ]; then + rm -f "$HOME/.bash_history" +fi + +### Remove wget history file +# New dotfiles include alias that automatically adds the wget-hsts file in the ~/.local folder +if [ -f "$HOME/.wget-hsts" ]; then + rm -f "$HOME/.wget-hsts" +fi diff --git a/home/dot_local/bin/executable_plymouth-preview b/home/dot_local/bin/executable_plymouth-preview new file mode 100644 index 00000000..df48f795 --- /dev/null +++ b/home/dot_local/bin/executable_plymouth-preview @@ -0,0 +1,30 @@ +#!/bin/bash + +# Source: https://github.com/eylles/plymouth-preview/blob/master/plymouth-preview + +## Preview Plymouth Splash ## +## by _khAttAm_ ## +## www.khattam.info ## +## License: GPL v3 ## + +chk_root () { + if [ ! $( id -u ) -eq 0 ]; then + echo Must be run as root + exit + fi +} + +chk_root + +DURATION=$1 +if [ $# -ne 1 ]; then + DURATION=10 +fi + +plymouthd +plymouth --show-splash +for ((I=0; I<$DURATION; I++)); do + plymouth --update=test$I + sleep 1 +done +plymouth quit diff --git a/home/private_dot_config/npm/config/npm-init.js b/home/private_dot_config/npm/config/npm-init.js new file mode 100644 index 00000000..2e57d9d3 --- /dev/null +++ b/home/private_dot_config/npm/config/npm-init.js @@ -0,0 +1,7 @@ +module.exports = { + version: '0.0.1', + main: 'index.js', + scripts: { + start: 'node index.js' + } +} diff --git a/home/private_dot_config/npm/npmrc.tmpl.TODO b/home/private_dot_config/npm/npmrc.tmpl similarity index 100% rename from home/private_dot_config/npm/npmrc.tmpl.TODO rename to home/private_dot_config/npm/npmrc.tmpl