This commit is contained in:
Brian Zalewski 2023-12-25 06:50:02 +00:00
parent 0c2c17b8ab
commit 37f9beeff8
21 changed files with 796 additions and 394 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,8 @@
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/opt/homebrew/bin:$HOME/.local/bin
*/5 * * * * command -v autorestic > /dev/null && . "$HOME/.config/shell/apps.sh" && autorestic -c "$HOME/.config/autorestic/autorestic-user.yml" --ci cron > /tmp/autorestic.log 2>&1
* * * * * command -v dagu-cron > /dev/null && dagu-cron
30 4 * * * command -v ghorg > /dev/null && ghorg reclone
*/5 * * * * command -v autorestic > /dev/null && autorestic -c "$HOME/.config/autorestic/autorestic-user.yml" --ci cron > /tmp/autorestic.log 2>&1
* * * * * command -v dagu-start-all > /dev/null && test -f "$HOME/.config/shell/exports.sh" && . "$HOME/.config/shell/exports.sh" && dagu-start-all
30 4 * * * command -v ghorg > /dev/null && test -f "$HOME/.config/shell/exports.sh" && . "$HOME/.config/shell/exports.sh" && ghorg reclone
# * * * * * command to be executed
# ┯ ┯ ┯ ┯ ┯

View file

@ -36,6 +36,11 @@ elif command -v htop > /dev/null; then
alias top='bashtop'
fi
### batcat
if command -v batcat > /dev/null; then
alias bat='batcat'
fi
### bat
if command -v bat > /dev/null; then
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
@ -43,7 +48,7 @@ if command -v bat > /dev/null; then
alias cat='bat -pp'
alias less='bat --paging=always'
help() {
"$@" --help 2>&1 | bathelp
"$@" --help 2>&1 | bat-help
}
fi
@ -70,6 +75,11 @@ else
alias ls='ls -AlhF --color=auto'
fi
### fdfind
if command -v fdfind > /dev/null; then
alias fd='fdfind'
fi
### gping
# Replacement for ping that includes graph
if command -v gping > /dev/null; then
@ -101,6 +111,11 @@ if command -v mitmweb > /dev/null; then
alias mitmweb='mitmweb --set confdir=${XDG_CONFIG_HOME:-$HOME/.config}/mitmproxy'
fi
### readlink
if command -v greadlink > /dev/null && [ -d /Applications ] && [ -d /System ]; then
alias readlink='greadlink'
fi
### ripgrep
if command -v rg > /dev/null; then
alias rgrep='rg --color=auto'
@ -109,6 +124,11 @@ fi
### xclip
alias xclip='xclip -selection c'
### yank
if command -v yank-cli > /dev/null; then
alias yank='yank-cli'
fi
### Zola
if command -v org.getzola.zola > /dev/null; then
alias zola="flatpak run org.getzola.zola"

View file

@ -55,6 +55,9 @@ export PATH="$HOME/.local/bin/firejail:$PATH"
export PATH="$HOME/.local/bin/flatpak:$PATH"
export PATH="$HOME/.local/bin/gpt:$PATH"
export PATH="$HOME/.local/bin/pipx:$PATH"
if [ -f /usr/bin/qubes-session ]; then
export PATH="$HOME/.local/bin/qubes:$PATH"
fi
export SSH_KEY_PATH="$HOME/.ssh/id_rsa"
### Homebrew
@ -112,6 +115,9 @@ fi
export ANSIBLE_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/ansible"
export ANSIBLE_CONFIG="$ANSIBLE_HOME/ansible.cfg"
export ANSIBLE_GALAXY_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/ansible/galaxy_cache"
if [ -f /usr/bin/qubes-session ]; then
export PATH="$PATH:$HOME/.local/share/ansible-qubes/bin"
fi
### Aqua
export AQUA_ROOT_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/aqua"
@ -278,6 +284,14 @@ export HOMEBREW_CASK_OPTS="--appdir=/Applications --display-times --no-quarantin
### HTTPie
export HTTPIE_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/httpie"
### IntelliJ IDEA
if [ -f "/Applications/IntelliJ IDEA CE.app/Contents/MacOS/idea" ]; then
export PATH="$PATH:/Applications/IntelliJ IDEA CE.app/Contents/MacOS"
alias idea.sh='idea'
elif [ -f "/snap/intellij-idea-community/current/bin/idea.sh" ]; then
export PATH="$PATH:/snap/intellij-idea-community/current/bin"
fi
### IPFS
export IPFS_PATH="${XDG_DATA_HOME:-$HOME/.local/share}/ipfs"

View file

@ -1,4 +1,3 @@
{{- if eq .host.qubes true -}}
#!/usr/bin/env bash
# Creates a Qube on RAM disk and opens Firefox if the Qube does not already exist.
@ -27,4 +26,3 @@ else
sudo rm -rf /var/log/pacat.new.log
sudo rm -rf /var/log/qubesdb.new.log
fi
{{ end -}}

View file

@ -1,3 +0,0 @@
{{- if (eq .host.distro.id "ubuntu") -}}
/usr/bin/batcat
{{- end -}}

View file

@ -1,3 +0,0 @@
{{- if (eq .host.qubes true) -}}
{{ .host.home }}/.local/share/ansible-qubes/bin/bombshell-client
{{- end -}}

View file

@ -1,3 +0,0 @@
{{- if (eq .host.distro.id "ubuntu") -}}
/usr/bin/fdfind
{{- end -}}

View file

@ -1,5 +0,0 @@
{{- if (eq .host.distro.family "darwin") -}}
/Applications/IntelliJ\ IDEA\ CE.app/Contents/MacOS/idea
{{- else if eq .host.distro.family "linux" -}}
/snap/intellij-idea-community/current/bin/idea.sh
{{- end -}}

View file

@ -1,4 +0,0 @@
{{- if (eq .host.qubes true) -}}
{{ .host.home }}/.local/share/ansible-qubes/bin/qrun
{{- end -}}

View file

@ -1,3 +0,0 @@
{{- if (eq .host.qubes true) -}}
{{ .host.home }}/.local/share/ansible-qubes/bin/qssh
{{- end -}}

View file

@ -1,4 +0,0 @@
{{- if (eq .host.qubes true) -}}
{{ .host.home }}/.local/share/ansible-qubes/bin/qssh
{{- end -}}

View file

@ -1,3 +0,0 @@
{{- if (eq .host.distro.family "darwin") -}}
/usr/local/bin/greadlink
{{- end -}}

View file

@ -1,3 +0,0 @@
{{- if (eq .host.distro.family "darwin") -}}
/bin/stty
{{- end -}}

View file

@ -1,3 +0,0 @@
{{- if (eq .host.distro.id "ubuntu") -}}
/usr/bin/yank-cli
{{- end -}}