diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-23 23:35:59 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-24 12:42:27 -0700 |
commit | c67d4836f4d6d5e6c8ef4e2de38bd21ccb6ee1a1 (patch) | |
tree | fded906652b6bf03c60e0c133a368c5027cd4d1e /archive/bin/usbskelhere | |
parent | aa5a315a0876431105f73da75de9ddfa89e907d3 (diff) | |
download | dotfiles-c67d4836f4d6d5e6c8ef4e2de38bd21ccb6ee1a1.tar.gz |
tidy and simplify shell init
Rely on SPWCRONTAB property to set PATH for cronjobs, and otherwise rely on
.profile, .xsessionrc etc. to set PATH, once, at login. Just archive scripts
I haven't used lately which might otherwise need more significant adjustments,
or appear to be broken in other ways.
Diffstat (limited to 'archive/bin/usbskelhere')
-rwxr-xr-x | archive/bin/usbskelhere | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/archive/bin/usbskelhere b/archive/bin/usbskelhere new file mode 100755 index 00000000..d242e482 --- /dev/null +++ b/archive/bin/usbskelhere @@ -0,0 +1,25 @@ +#!/bin/bash + +. $HOME/.shenv +. $HOME/src/dotfiles/lib-src/tputfs.sh + +skelhere () +{ + usbpubkeys + mkdir -p doc bin lib + cp -RLf ~/lib/annex/big/skel/usb/* . + cp ~/src/dotfiles/bin/{apple-setup.sh,dasl-setup.bat} bin + cp -L ~/lib/pro.terminal lib + cp -L "$HOME/lib/annex/doc/sounds/Rainy Mood pomodoro.mp3" lib + zip -j lib/spwhitton.zip lib/*.reg bin/* + # status now you might want to clone ~/lib/dionysus\; see comproc.org +} + +while true; do + read -p "This might overwrite stuff in $(pwd). Is that okay? " yn + case $yn in + [Yy]* ) skelhere; break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done |