Updated emborg configs, and zshrc

This commit is contained in:
Eric Renfro 2020-03-01 19:38:51 -05:00
parent b61784052e
commit eee3bbd643
7 changed files with 117 additions and 4 deletions

View file

@ -5,6 +5,7 @@ src_dirs = '''
excludes = '''
~/tmp
~/Music
~/Library/Application Support/Steam
~/Library/Application Support/Google
~/Library/Application Support/LogMeInInc

View file

@ -14,6 +14,7 @@ excludes = '''
~/.firestorm_x64.new
~/.local/share/fonts
~/.local/share/Steam
~/.steam/steam/steamapps
~/**/__pycache__
~/**/*.pyc
~/**/.*.swp

View file

@ -0,0 +1,32 @@
#src_dirs = '~'.split() # absolute path to directory to be backed up
passphrase = 'aiwei0pu4Iev0Ies4aeheim9ahmeQuec'
encryption = 'repokey'
repository = '/Volumes/Passport/macOS/borg'
src_dirs = '''
~
'''.split()
excludes = '''
~/tmp
~/Music
~/Library/Application Support/Steam
~/Library/Application Support/Google
~/Library/Application Support/LogMeInInc
~/Library/Application Support/Code
~/Library/Application Support/Firefox
~/Library/Containers
~/Library/Group Containers
~/Library/Logs
~/Library/Python
~/Library/Caches
~/.cache
~/.mozilla
~/.config/google-chrome
~/.config/BraveSoftware
~/**/__pycache__
~/**/*.pyc
~/**/.*.swp
~/**/.*.swo
'''.split()

View file

@ -0,0 +1,26 @@
#src_dirs = '~'.split() # absolute path to directory to be backed up
passphrase = 'aiwei0pu4Iev0Ies4aeheim9ahmeQuec'
encryption = 'repokey'
repository = '/run/media/psi-jack/Passport/psi-jack/borg'
src_dirs = '''
~
'''.split()
excludes = '''
~/tmp
~/Music
~/bin/sl
~/.cache
~/.mozilla
~/.config/google-chrome
~/.config/BraveSoftware
~/.firestorm_x64
~/.local/share/fonts
~/.local/share/Steam
~/**/__pycache__
~/**/*.pyc
~/**/.*.swp
~/**/.*.swo
'''.split()

View file

@ -0,0 +1,31 @@
#src_dirs = '~'.split() # absolute path to directory to be backed up
passphrase = 'aiwei0pu4Iev0Ies4aeheim9ahmeQuec'
encryption = 'repokey'
repository = '/run/media/psi-jack/Passport/psi-jack/borg'
src_dirs = '''
~
/mnt/storage/psi-jack
'''.split()
excludes = '''
~/tmp
~/Music
~/bin/sl
~/.cache
~/.mozilla
~/.config/google-chrome
~/.config/BraveSoftware
~/.firestorm_x64
~/.local/share/fonts
~/.local/share/Steam
~/**/__pycache__
~/**/*.pyc
~/**/.*.swp
~/**/.*.swo
/mnt/storage/psi-jack/Backups
/mnt/storage/psi-jack/Music
/mnt/storage/psi-jack/Downloads
/mnt/storage/psi-jack/ISOs
'''.split()

View file

@ -1,8 +1,8 @@
# These settings are common to all configurations
# configurations
configurations = 'macos'
default_configuration = 'macos'
configurations = 'home passport'
default_configuration = 'home'
# passcode
# specify either passphrase or avendesora_account

26
.zshrc
View file

@ -128,11 +128,33 @@ typeset -U PATH
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
export PATH
# Portable alternative to readlink -f
zpath() { cd -P . || return
_out() { printf "%s$_zdlm\n" "$PWD/${1##*/}"; }
_cd() { cd -P "$1" ; } >/dev/null 2>&1
while [ $# -gt 0 ] && _cd .
do if _cd "$1"
then _out
elif ! [ -L "$1" ] && [ -e "$1" ]
then _cd "${1%/*}"; _out "$1"
elif [ -L "$1" ]
then ( while set -- "${1%?/}"; _cd "${1%/*}"; [ -L "${1##*/}" ]
do set " $1" "$(_cd -; ls -nd -- "$1"; echo /)"
set -- "${2#*"$1" -> }"
done; _out "$1"
); else ( PS4=ERR:\ NO_SUCH_PATH; set -x; : "$1" )
fi; _cd -; shift; done
unset -f _out _cd; unset -v _zdlm
}
# Include local functions/aliases/environments:
while read f
do
source "$f"
done < <(find "${HOME}/.local/dotfiles/" -type f -name '*.zsh')
if [[ -f "$(zpath "$f")" ]]; then
source "$f"
fi
done < <(find "${HOME}/.local/dotfiles/" -name '*.zsh')
# Disable Ctrl+S Scroll-Locking
stty -ixon