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
This commit is contained in:
parent
3a2e72dbd0
commit
36ca59b885
4 changed files with 55 additions and 0 deletions
|
@ -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
|
30
home/dot_local/bin/executable_plymouth-preview
Normal file
30
home/dot_local/bin/executable_plymouth-preview
Normal file
|
@ -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
|
7
home/private_dot_config/npm/config/npm-init.js
Normal file
7
home/private_dot_config/npm/config/npm-init.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
module.exports = {
|
||||
version: '0.0.1',
|
||||
main: 'index.js',
|
||||
scripts: {
|
||||
start: 'node index.js'
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue