From 06c994ece45698eff55aad3dfec35c29f201358c Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 30 Nov 2025 22:20:34 -0500 Subject: [PATCH] stowing global --- .aliases.d/tar.sh | 5 +++- .aliases.d/z_mail_checker.sh | 2 +- README.md | 25 ++++++++++++++++--- scripts/helper/.git_bash_prompt | 3 +-- scripts/helper/scan_aliases.sh | 4 +-- scripts/sshto/scripts/compile_bash_aliases.sh | 2 +- scripts/sshto/scripts/compile_sshto.sh | 2 +- 7 files changed, 31 insertions(+), 12 deletions(-) diff --git a/.aliases.d/tar.sh b/.aliases.d/tar.sh index 004cc21..d243b21 100644 --- a/.aliases.d/tar.sh +++ b/.aliases.d/tar.sh @@ -82,9 +82,11 @@ bk() { tar --exclude-vcs --exclude-from="$HOME/.data/user_def_excludes.ini" -czf "$myoutfile" "${exclude_arg[@]}" "$@" } +alias qcompress='zstd -19 -T0' + function extract { if [ -z "$1" ]; then - echo "Usage: extract ." + echo "Usage: extract ." return 0 fi @@ -115,6 +117,7 @@ function extract { *.tbz2) nice -n 17 tar xvjf "$n" ;; *.tgz) nice -n 17 tar xvzf "$n" ;; *.zip) nice -n 17 unzip "$n" ;; + *.zst) nice -n 17 unzstd "$n" ;; *.Z) nice -n 17 uncompress "$n" ;; *.7z) nice -n 17 7z x "$n" ;; *.xz) nice -n 17 unxz "$n" ;; diff --git a/.aliases.d/z_mail_checker.sh b/.aliases.d/z_mail_checker.sh index 8da6cea..fc63b10 100644 --- a/.aliases.d/z_mail_checker.sh +++ b/.aliases.d/z_mail_checker.sh @@ -1 +1 @@ -~/dotfiles/scripts/helper/check_mail.sh +~/scripts/helper/check_mail.sh diff --git a/README.md b/README.md index 6d681e4..4dd40f9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # my dotfiles -## Installing stow: +## Installing the "stow" program: # On Debian/Ubuntu sudo apt install stow @@ -10,8 +10,25 @@ sudo dnf install stow # On Arch Linux sudo pacman -S stow -# Setup symlinks to home folder +## Installing dotfiles ``` -$ cd ~/dotfiles -$ stow . +# Create system wide stow directory +$ sudo mkdir -p /usr/local/stow + +# Pull Git Repo +$ mkdir ~/stow +$ cd ~/stow +$ git clone https://git.mysnippetsofcode.com/bobs/dotfiles.git + +# Symlink your dot files to make updates easy +$ sudo ln -s ~/stow/dotfiles /usr/local/stow/dotfiles + +# Stow for your user and root accounts +# Dry Run (verbose) on Home folder +$ sudo stow -d /usr/local/stow -nv -t ~ dotfiles +# Do it for real! +$ sudo stow -d /usr/local/stow -t ~ dotfiles + +# For root user, if desired! +$ sudo stow -d /usr/local/stow -t /root dotfiles ``` diff --git a/scripts/helper/.git_bash_prompt b/scripts/helper/.git_bash_prompt index 5796fea..0c89d0e 100644 --- a/scripts/helper/.git_bash_prompt +++ b/scripts/helper/.git_bash_prompt @@ -1,4 +1,3 @@ -PROFILE_PATH=/opt/profiles # Set the bash prompt according to: # * the branch/status of the current git repository # * the return value of the previous command @@ -49,7 +48,7 @@ LIGHT_GREEN="\[\033[1;32m\]" COLOR_NONE="\[\e[0m\]" COLOR_DEFAULT="\[\e[39m\]" -[ -f ~/dotfiles/scripts/helper/.kube-ps1 ] && source ~/dotfiles/scripts/helper/.kube-ps1 +[ -f ~/scripts/helper/.kube-ps1 ] && source ~/scripts/helper/.kube-ps1 function is_normal_theme() { # sudo apt-get install fonts-powerline diff --git a/scripts/helper/scan_aliases.sh b/scripts/helper/scan_aliases.sh index 6abd4d5..38883c2 100755 --- a/scripts/helper/scan_aliases.sh +++ b/scripts/helper/scan_aliases.sh @@ -1,7 +1,7 @@ #!/bin/bash -SANE_CHECKER=~/.data/.sane_checker.sum -SANE_CERTS=~/.data/.sane_certs.sum +SANE_CHECKER=~/.data/.sane_checker_${USER}.sum +SANE_CERTS=~/.data/.sane_certs_${USER}.sum export SHA_SUM_APP=/usr/bin/sha256sum error_status=$(mktemp) diff --git a/scripts/sshto/scripts/compile_bash_aliases.sh b/scripts/sshto/scripts/compile_bash_aliases.sh index a5eb960..e2d7fd3 100755 --- a/scripts/sshto/scripts/compile_bash_aliases.sh +++ b/scripts/sshto/scripts/compile_bash_aliases.sh @@ -1,7 +1,7 @@ #!/bin/bash if [ -z "$_PROFILES_PATH" ]; then - _PROFILES_PATHA=~/dotfiles/ + _PROFILES_PATHA=~/stow/dotfiles/ else _PROFILES_PATHA=${_PROFILES_PATH} fi diff --git a/scripts/sshto/scripts/compile_sshto.sh b/scripts/sshto/scripts/compile_sshto.sh index 6dd741a..07182dd 100755 --- a/scripts/sshto/scripts/compile_sshto.sh +++ b/scripts/sshto/scripts/compile_sshto.sh @@ -1,7 +1,7 @@ #!/bin/bash if [ -z "$_PROFILES_PATH" ]; then - _MAIN_PATHCC=~/dotfiles/ + _MAIN_PATHCC=~/stow/dotfiles/ else _MAIN_PATHCC=${_PROFILES_PATH} fi