1
0
Fork 0
This commit is contained in:
Luca Bilke 2024-10-22 19:46:12 +02:00
commit faa1bf9333
No known key found for this signature in database
GPG Key ID: C9E851809C1A5BDE
13 changed files with 96 additions and 21 deletions

View File

@ -1,5 +1,5 @@
default_model = "anthropic/claude-3-5-sonnet-20240620"
system_prompt = "You are a coding and system administration assistant."
system_prompt = "You are a coding and linux system administration assistant."
theme = "monokai"
[[models]]

View File

@ -148,7 +148,7 @@ res="$(
--bind="start:reload([ -n {q} ] && $rg_cmd -- {q} || true)" \
--bind="change:reload([ -n {q} ] && $rg_cmd -- {q} || true)" \
--preview-window="right,50%" \
--preview='~/.config/lf/preview/clean; ~/.config/lf/preview/preview {1} "$FZF_PREVIEW_COLUMNS" "$FZF_PREVIEW_LINES" "$FZF_PREVIEW_LEFT" "$FZF_PREVIEW_TOP"'
--preview='~/.config/lf/preview {1} "$FZF_PREVIEW_COLUMNS" "$FZF_PREVIEW_LINES" "$FZF_PREVIEW_LEFT" "$FZF_PREVIEW_TOP"'
)"
file="$(realpath "$(echo "$res" | cut -d':' -f1 | sed 's/\\/\\\\/g;s/"/\\"/g')" 2>/dev/null)"
row="$(echo "$res" | cut -d':' -f2)"

View File

@ -0,0 +1,40 @@
[Default Applications]
text/x-shellscript=text.desktop;
text/plain=text.desktop;
application/postscript=pdf.desktop;
application/pdf=pdf.desktop;
image/png=img.desktop;
image/jpeg=img.desktop;
image/gif=img.desktop;
video/x-matroska=video.desktop
video/mp4=video.desktop
inode/directory=file.desktop
text/html=browser.desktop
x-scheme-handler/http=browser.desktop
x-scheme-handler/https=browser.desktop
x-scheme-handler/chrome=browser.desktop
application/x-extension-htm=browser.desktop
application/x-extension-html=browser.desktop
application/x-extension-shtml=browser.desktop
application/xhtml+xml=browser.desktop
application/x-extension-xhtml=browser.desktop
application/x-extension-xht=browser.desktop
text/calendar=mail.desktop
message/rfc822=mail.desktop
x-scheme-handler/mailto=mail.desktop
x-scheme-handler/mid=mail.desktop
x-scheme-handler/news=mail.desktop
x-scheme-handler/snews=mail.desktop
x-scheme-handler/nntp=mail.desktop
x-scheme-handler/feed=mail.desktop
x-scheme-handler/webcal=mail.desktop
x-scheme-handler/webcals=mail.desktop
application/rss+xml=mail.desktop
application/x-extension-rss=mail.desktop
application/x-extension-ics=mail.desktop
; x-scheme-handler/magnet=torrent.desktop;
; application/x-bittorrent=torrent.desktop;
; application/rss+xml=rss.desktop

View File

@ -2,10 +2,6 @@
source "$ZDOTDIR"/plugins/zsh-defer/zsh-defer.plugin.zsh
for f in "$ZDOTDIR"/configs/*; do
source "$f"
done
for f in \
"$ZDOTDIR"/plugins/*/*.plugin.zsh \
/usr/share/zsh/plugins/*/*.plugin.zsh \
@ -14,5 +10,9 @@ do
[ "$f" != "${ZDOTDIR}/plugins/zsh-defer.plugin.zsh" ] && zsh-defer source $f
done
for f in "$ZDOTDIR"/configs/*; do
source "$f"
done
export GPG_TTY="$(tty)"
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1

View File

@ -6,10 +6,10 @@ GS="$(printf '\034')"
map=$(jq -r 'to_entries[] | "\(.key)'"$FS"'\(.value)"' "${HOME}/.secrets/dotfile-secrets.json")
awk='{gsub(/[^\^]/, "[&]", $2); gsub(/\^/, "\\^", $2);'
escape='{gsub(/[^\^]/, "[&]", $2); gsub(/\^/, "\\^", $2);'
case $1 in
clean) awk="${awk}"' printf "s%s%s%s<#%s#>%sg;", d, $2, d, $1, d}' ;;
smudge) awk="${awk}"' printf "s%s<#%s#>%s%s%sg;", d, $1, d, $2, d}' ;;
clean) awk="${escape}"' printf "s%s%s%s<#%s#>%sg;", d, $2, d, $1, d}' ;;
smudge) awk='printf "s%s<#%s#>%s%s%sg;", d, $1, d, $2, d}' ;;
esac
sed "$(echo "$map" | awk -F"$FS" -v d="$GS" "$awk")"

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Name=Browser
Type=Application
Terminal=false
Exec=/usr/bin/firefox %u

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Name=File Manager
Type=Application
Terminal=true
Exec=/usr/bin/st -e lfX %u

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Name=Image viewer
Type=Application
Terminal=false
Exec=/usr/bin/nsxiv -a %f

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Name=Mail Client
Type=Application
Terminal=false
Exec=/usr/lib/thunderbird/thunderbird %u

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Name=PDF Viewer
Type=Application
Terminal=false
Exec=/usr/bin/zathura %u

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Name=Text Editor
Type=Application
Terminal=true
Exec=/usr/bin/st -e nvim %u

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Name=Video Player
Type=Application
Terminal=false
Exec=/usr/bin/mpv -quiet %f

View File

@ -11,13 +11,13 @@ alias vault_login_tralios='
-token-only \
-method=userpass \
username=luca |
tee ${HOME}/Documents/dev/tralios/ansible/classes/.tralios-vault-token
tee ${HOME}/Documents/dev/tralios/ansible/.tralios-vault-token
'
alias vault_tralios='
export VAULT_ADDR=https://vault.tralios.de &&
export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/tralios/ansible/.tralios-vault-token) &&
vault \
'
function vault_tralios {
export VAULT_ADDR=https://vault.tralios.de
export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/tralios/ansible/classes/.tralios-vault-token)
vault
}
alias vault_login_schneiderfilz='
VAULT_ADDR=https://vault.schneiderfilz.com \
@ -26,10 +26,10 @@ alias vault_login_schneiderfilz='
-token-only \
-method=userpass \
username=luca |
tee ${HOME}/Documents/dev/schneiderfilz/sf-ansible/classes/.schneiderfilz-vault-token
tee ${HOME}/Documents/dev/schneiderfilz/sf-ansible/.schneiderfilz-vault-token
'
alias vault_schneiderfilz='
export VAULT_ADDR=https://vault.schneiderfilz.com &&
export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/schneiderfilz/sf-ansible/.schneiderfilz-vault-token) &&
vault \
'
function vault_schneiderfilz {
export VAULT_ADDR=https://vault.schneiderfilz.com
export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/schneiderfilz/sf-ansible/classes/.schneiderfilz-vault-token)
vault $@
}