stowing global

main
Robert 1 week ago
parent 6746a30563
commit 06c994ece4
  1. 5
      .aliases.d/tar.sh
  2. 2
      .aliases.d/z_mail_checker.sh
  3. 25
      README.md
  4. 3
      scripts/helper/.git_bash_prompt
  5. 4
      scripts/helper/scan_aliases.sh
  6. 2
      scripts/sshto/scripts/compile_bash_aliases.sh
  7. 2
      scripts/sshto/scripts/compile_sshto.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 <path/file_name>.<deb|rpm|zip|rar|bz2|gz|tar|tbz2|tgz|Z|7z|xz|ex|tar.bz2|tar.gz|tar.xz>"
echo "Usage: extract <path/file_name>.<deb|rpm|zip|zst|rar|bz2|gz|tar|tbz2|tgz|Z|7z|xz|ex|tar.bz2|tar.gz|tar.xz>"
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" ;;

@ -1 +1 @@
~/dotfiles/scripts/helper/check_mail.sh
~/scripts/helper/check_mail.sh

@ -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
```

@ -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

@ -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)

@ -1,7 +1,7 @@
#!/bin/bash
if [ -z "$_PROFILES_PATH" ]; then
_PROFILES_PATHA=~/dotfiles/
_PROFILES_PATHA=~/stow/dotfiles/
else
_PROFILES_PATHA=${_PROFILES_PATH}
fi

@ -1,7 +1,7 @@
#!/bin/bash
if [ -z "$_PROFILES_PATH" ]; then
_MAIN_PATHCC=~/dotfiles/
_MAIN_PATHCC=~/stow/dotfiles/
else
_MAIN_PATHCC=${_PROFILES_PATH}
fi

Loading…
Cancel
Save