Updates reference config with a bunch of os and shell safety. #1

Merged
maj merged 6 commits from machines/spider into main 2026-09-04 00:19:08 +00:00
Showing only changes of commit 9f27d8a2c4 - Show all commits

View File

@@ -43,6 +43,7 @@ alias mv='mv -i'
alias rm='rm -i'
alias rs='rsync -avhz --progress'
alias rsfat='rs --no-perms --no-owner --no-group --no-times'
alias rscheck='function f() { rsync -avhzc --itemize-changes --dry-run "$1" "$2" | grep "^>f[^+].*[sc]" ; unset -f f; } ; f'
alias md=mkdir
alias rd=rmdir
@@ -72,6 +73,7 @@ alias lsusb='system_profiler SPUSBDataType'
alias tea='tee -a'
alias find_recent='function { find . $* -exec ls -ltr {} + }'
alias find_recent='function f() { find . $* -exec ls -ltr {} + ; unset -f f; }; f'
alias mount-nas='sshfs deepthought:/home/tom ~/nas/home'
# pbcopy
if ! command -v pbcopy >/dev/null 2>&1; then
@@ -129,3 +131,6 @@ alias inspect-video='mediainfo --Inform="Video;Codec: %Format%\nProfile: %Format
alias wget-rip='wget --page-requisites --convert-links --adjust-extension --no-clobber --span-hosts'
alias wget-rip='wget --page-requisites --convert-links --adjust-extension --no-clobber --span-hosts -r -l1'
alias wget-rip-lite='wget --page-requisites --convert-links --adjust-extension --no-clobber --span-hosts -r -l1 -A jpg,jpeg,png,gif,html,css,ttf,otf'
alias mount-nas='mkdir -p ~/nas/tom && sshfs deepthought:/mnt/Data/Private/Homes/tom ~/nas/tom'
alias installlocalbin='function f() { sudo install -m 755 -o root -g root "$1" /usr/local/bin ; unset -f f; } f'
alias installuserbin='function f() { mkdir -p ~/bin ; cp "$1" ~/bin/ ; unset -f f; } f'