Updated emborg configs, and zshrc

This commit is contained in:
Eric Renfro 2020-03-01 19:38:51 -05:00
parent bbc42ccbea
commit a74b058d7c
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF
7 changed files with 117 additions and 4 deletions

View file

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

View file

@ -14,6 +14,7 @@ excludes = '''
~/.firestorm_x64.new ~/.firestorm_x64.new
~/.local/share/fonts ~/.local/share/fonts
~/.local/share/Steam ~/.local/share/Steam
~/.steam/steam/steamapps
~/**/__pycache__ ~/**/__pycache__
~/**/*.pyc ~/**/*.pyc
~/**/.*.swp ~/**/.*.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 # These settings are common to all configurations
# configurations # configurations
configurations = 'macos' configurations = 'home passport'
default_configuration = 'macos' default_configuration = 'home'
# passcode # passcode
# specify either passphrase or avendesora_account # specify either passphrase or avendesora_account

24
.zshrc
View file

@ -128,11 +128,33 @@ typeset -U PATH
PATH="$HOME/bin:$HOME/.local/bin:$PATH" PATH="$HOME/bin:$HOME/.local/bin:$PATH"
export 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: # Include local functions/aliases/environments:
while read f while read f
do do
if [[ -f "$(zpath "$f")" ]]; then
source "$f" source "$f"
done < <(find "${HOME}/.local/dotfiles/" -type f -name '*.zsh') fi
done < <(find "${HOME}/.local/dotfiles/" -name '*.zsh')
# Disable Ctrl+S Scroll-Locking # Disable Ctrl+S Scroll-Locking
stty -ixon stty -ixon