Updates not yet pushed
This commit is contained in:
parent
517381620a
commit
cfe4a061be
4 changed files with 49 additions and 0 deletions
2
.local/dotfiles/environment/borg.zsh
Normal file
2
.local/dotfiles/environment/borg.zsh
Normal file
|
@ -0,0 +1,2 @@
|
|||
export BORG_REPO=psi-jack@mega-backups:/volume1/homes/psi-jack/borg
|
||||
#export BORG_PASSCOMMAND="pass print borg --please_show_me_the_passwords"
|
30
.local/dotfiles/functions/lessfilter.zsh
Normal file
30
.local/dotfiles/functions/lessfilter.zsh
Normal file
|
@ -0,0 +1,30 @@
|
|||
function lessfilter ()
|
||||
{
|
||||
case "$1" in
|
||||
*.awk|*.groff|*.java|*.js|*.m4|*.php|*.pl|*.pm|*.pod|*.sh|\
|
||||
*.ad[asb]|*.asm|*.inc|*.[ch]|*.[ch]pp|*.[ch]xx|*.cc|*.hh|\
|
||||
*.lsp|*.l|*.pas|*.p|*.xml|*.xps|*.xsl|*.axp|*.ppd|*.pov|\
|
||||
*.diff|*.patch|*.py|*.rb|*.sql|*.ebuild|*.eclass)
|
||||
if whence -p pygmentize > /dev/null; then
|
||||
pygmentize -f 256 "$1"
|
||||
else
|
||||
cat "$1"
|
||||
fi
|
||||
;;
|
||||
.bashrc|.bash_aliases|.bash_environment)
|
||||
if whence -p pygmentize > /dev/null; then
|
||||
pygmentize -f 256 -l sh "$1"
|
||||
else
|
||||
cat "$1"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
if grep -q "#\!/bin/bash" "$1" 2>/dev/null; then
|
||||
pygmentize -f 256 -l sh "$1"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
9
.local/dotfiles/functions/update-solrepo.zsh
Normal file
9
.local/dotfiles/functions/update-solrepo.zsh
Normal file
|
@ -0,0 +1,9 @@
|
|||
function update-solrepo() {
|
||||
REPO_DIR=${REPO_DIR-/mnt/storage/repo/solus}
|
||||
|
||||
pushd "$REPO_DIR" 2>&1 >/dev/null
|
||||
eopkg index
|
||||
rsync -avhHi --delete-after "${REPO_DIR}/" root@bastion:/srv/repo/solus/
|
||||
popd 2>&1 >/dev/null
|
||||
}
|
||||
|
8
.local/dotfiles/local.conf.yaml
Normal file
8
.local/dotfiles/local.conf.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
- defaults:
|
||||
link:
|
||||
relink: true
|
||||
|
||||
#- link:
|
||||
# ~/bin/pidgin-status:
|
||||
# path: bin/pidgin-status
|
||||
|
Loading…
Reference in a new issue