Latest
This commit is contained in:
parent
0c2c17b8ab
commit
37f9beeff8
21 changed files with 796 additions and 394 deletions
File diff suppressed because it is too large
Load diff
|
@ -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
|
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
|
*/5 * * * * command -v autorestic > /dev/null && autorestic -c "$HOME/.config/autorestic/autorestic-user.yml" --ci cron > /tmp/autorestic.log 2>&1
|
||||||
* * * * * command -v dagu-cron > /dev/null && dagu-cron
|
* * * * * 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 && ghorg reclone
|
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
|
# * * * * * command to be executed
|
||||||
# ┯ ┯ ┯ ┯ ┯
|
# ┯ ┯ ┯ ┯ ┯
|
||||||
|
|
|
@ -36,6 +36,11 @@ elif command -v htop > /dev/null; then
|
||||||
alias top='bashtop'
|
alias top='bashtop'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### batcat
|
||||||
|
if command -v batcat > /dev/null; then
|
||||||
|
alias bat='batcat'
|
||||||
|
fi
|
||||||
|
|
||||||
### bat
|
### bat
|
||||||
if command -v bat > /dev/null; then
|
if command -v bat > /dev/null; then
|
||||||
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
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 cat='bat -pp'
|
||||||
alias less='bat --paging=always'
|
alias less='bat --paging=always'
|
||||||
help() {
|
help() {
|
||||||
"$@" --help 2>&1 | bathelp
|
"$@" --help 2>&1 | bat-help
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -70,6 +75,11 @@ else
|
||||||
alias ls='ls -AlhF --color=auto'
|
alias ls='ls -AlhF --color=auto'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### fdfind
|
||||||
|
if command -v fdfind > /dev/null; then
|
||||||
|
alias fd='fdfind'
|
||||||
|
fi
|
||||||
|
|
||||||
### gping
|
### gping
|
||||||
# Replacement for ping that includes graph
|
# Replacement for ping that includes graph
|
||||||
if command -v gping > /dev/null; then
|
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'
|
alias mitmweb='mitmweb --set confdir=${XDG_CONFIG_HOME:-$HOME/.config}/mitmproxy'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### readlink
|
||||||
|
if command -v greadlink > /dev/null && [ -d /Applications ] && [ -d /System ]; then
|
||||||
|
alias readlink='greadlink'
|
||||||
|
fi
|
||||||
|
|
||||||
### ripgrep
|
### ripgrep
|
||||||
if command -v rg > /dev/null; then
|
if command -v rg > /dev/null; then
|
||||||
alias rgrep='rg --color=auto'
|
alias rgrep='rg --color=auto'
|
||||||
|
@ -109,6 +124,11 @@ fi
|
||||||
### xclip
|
### xclip
|
||||||
alias xclip='xclip -selection c'
|
alias xclip='xclip -selection c'
|
||||||
|
|
||||||
|
### yank
|
||||||
|
if command -v yank-cli > /dev/null; then
|
||||||
|
alias yank='yank-cli'
|
||||||
|
fi
|
||||||
|
|
||||||
### Zola
|
### Zola
|
||||||
if command -v org.getzola.zola > /dev/null; then
|
if command -v org.getzola.zola > /dev/null; then
|
||||||
alias zola="flatpak run org.getzola.zola"
|
alias zola="flatpak run org.getzola.zola"
|
||||||
|
|
|
@ -55,6 +55,9 @@ export PATH="$HOME/.local/bin/firejail:$PATH"
|
||||||
export PATH="$HOME/.local/bin/flatpak:$PATH"
|
export PATH="$HOME/.local/bin/flatpak:$PATH"
|
||||||
export PATH="$HOME/.local/bin/gpt:$PATH"
|
export PATH="$HOME/.local/bin/gpt:$PATH"
|
||||||
export PATH="$HOME/.local/bin/pipx:$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"
|
export SSH_KEY_PATH="$HOME/.ssh/id_rsa"
|
||||||
|
|
||||||
### Homebrew
|
### Homebrew
|
||||||
|
@ -112,6 +115,9 @@ fi
|
||||||
export ANSIBLE_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/ansible"
|
export ANSIBLE_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/ansible"
|
||||||
export ANSIBLE_CONFIG="$ANSIBLE_HOME/ansible.cfg"
|
export ANSIBLE_CONFIG="$ANSIBLE_HOME/ansible.cfg"
|
||||||
export ANSIBLE_GALAXY_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/ansible/galaxy_cache"
|
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
|
### Aqua
|
||||||
export AQUA_ROOT_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/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
|
### HTTPie
|
||||||
export HTTPIE_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/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
|
### IPFS
|
||||||
export IPFS_PATH="${XDG_DATA_HOME:-$HOME/.local/share}/ipfs"
|
export IPFS_PATH="${XDG_DATA_HOME:-$HOME/.local/share}/ipfs"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
{{- if eq .host.qubes true -}}
|
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Creates a Qube on RAM disk and opens Firefox if the Qube does not already exist.
|
# 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/pacat.new.log
|
||||||
sudo rm -rf /var/log/qubesdb.new.log
|
sudo rm -rf /var/log/qubesdb.new.log
|
||||||
fi
|
fi
|
||||||
{{ end -}}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{{- if (eq .host.distro.id "ubuntu") -}}
|
|
||||||
/usr/bin/batcat
|
|
||||||
{{- end -}}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{{- if (eq .host.qubes true) -}}
|
|
||||||
{{ .host.home }}/.local/share/ansible-qubes/bin/bombshell-client
|
|
||||||
{{- end -}}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{{- if (eq .host.distro.id "ubuntu") -}}
|
|
||||||
/usr/bin/fdfind
|
|
||||||
{{- end -}}
|
|
|
@ -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 -}}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{{- if (eq .host.qubes true) -}}
|
|
||||||
{{ .host.home }}/.local/share/ansible-qubes/bin/qrun
|
|
||||||
{{- end -}}
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
{{- if (eq .host.qubes true) -}}
|
|
||||||
{{ .host.home }}/.local/share/ansible-qubes/bin/qssh
|
|
||||||
{{- end -}}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{{- if (eq .host.qubes true) -}}
|
|
||||||
{{ .host.home }}/.local/share/ansible-qubes/bin/qssh
|
|
||||||
{{- end -}}
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
{{- if (eq .host.distro.family "darwin") -}}
|
|
||||||
/usr/local/bin/greadlink
|
|
||||||
{{- end -}}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{{- if (eq .host.distro.family "darwin") -}}
|
|
||||||
/bin/stty
|
|
||||||
{{- end -}}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{{- if (eq .host.distro.id "ubuntu") -}}
|
|
||||||
/usr/bin/yank-cli
|
|
||||||
{{- end -}}
|
|
Loading…
Reference in a new issue