Skip to content

Commit 7db792f

Browse files
committed
2026-08-02
1 parent c35ee70 commit 7db792f

9 files changed

Lines changed: 59 additions & 61 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ setup-private*
99
.zcompdump
1010
__pycache__/
1111
node_modules/
12+
target/

config-editor/.config/zed/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@
219219
"default_model": {
220220
"effort": "high",
221221
"enable_thinking": true,
222-
"provider": "copilot_chat",
223-
"model": "gpt-5.4",
222+
"provider": "deepseek",
223+
"model": "deepseek-v4-flash",
224224
},
225225
},
226226
"telemetry": {

config-shell/.config/sh/env.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# GENERAL.
44
# export NAME='Edwin Kofler'
55
# export EMAIL='edwin@kofler.com'
6-
export BROWSER='librewolf'
7-
86
export LANG="${LANG:-en_US.UTF-8}"
97
export LANGUAGE="${LANGUAGE:-"$LANG"}"
108
export LC_ALL="${LC_ALL:-"$LANG"}"

config-shell/.config/sh/func.sh

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ del() {
103103
fi
104104
}
105105

106-
dg() {
107-
dig +nocmd "$1" any +multiline +noall +answer
108-
}
109-
110106
docker_nuke() {
111107
docker ps -q | xargs docker stop
112108
docker ps -aq | xargs docker rm
@@ -148,11 +144,6 @@ gs() {
148144
g s
149145
}
150146

151-
isup() {
152-
_util_log_warn "Executing: 'curl -sS --head -X GET \"$1\" | grep -q '200 OK'"
153-
command curl -sS --head -X GET "$1" | grep -q '200 OK'
154-
}
155-
156147
kkexec() {
157148
sudo kexec -l /efi/EFI/arch/vmlinuz-linux-lts --initrd /efi/EFI/arch/initramfs-linux-lts.img --reuse-cmdline
158149
sudo systemctl kexec
@@ -342,10 +333,6 @@ _mkt_util_log() {
342333
printf "%s\n" "$(date '+%Y.%m.%d - %I:%M:%S') | $_mkt_dir | $1" >>"${XDG_STATE_HOME:-$HOME/.local/state}/history/mkt_history"
343334
}
344335

345-
nh() {
346-
nohup "$@" >/dev/null 2>&1 &
347-
}
348-
349336
o() {
350337
if [ $# -eq 0 ]; then
351338
xdg-open .
@@ -402,24 +389,25 @@ print_shell_prompt_eval_string() {
402389
}
403390

404391
qe() {
405-
filterList="BraveSoftware code tetrio-desktop obsidian discord sublime-text Ryujinx unity3d hmcl hdlauncher TabNine zettlr Zettlr Google lunarclient libreoffice VirtualBox configstore pulse obs-studio eDEX-UI 1Password kde.org sublime-text-3 gdlauncher gdlauncher_next launcher-main gitify QtProject GIMP r2modman r2modmanPlus-local Code plover GitKraken Electron bonsai-browser sidekick Insomnia Typora wavebox microsoft-edge evolution chromium"
392+
_qe_list="BraveSoftware code tetrio-desktop obsidian discord sublime-text Ryujinx unity3d hmcl hdlauncher TabNine zettlr Zettlr Google lunarclient libreoffice VirtualBox configstore pulse obs-studio eDEX-UI 1Password kde.org sublime-text-3 gdlauncher gdlauncher_next launcher-main gitify QtProject GIMP Code plover GitKraken Electron bonsai-browser sidekick Insomnia Typora wavebox microsoft-edge evolution chromium Cursor librewolf vivaldi google-chrome mozilla go koodo-reader Devin VSCodium Antigravity devhub joplin-desktop Qoder ai.opencode.desktop Joplin akonadi JetBrains borg opencode"
406393

407394
_qe_file=$(
408395
cd -- "$XDG_CONFIG_HOME" || {
409396
_util_log_error "qe: Could not cd"
410397
exit 1
411398
}
412-
filterArgs=
413-
for file in $filterList; do
414-
filterArgs="$filterArgs -o -name $file"
399+
_qe_args=
400+
for file in $_qe_list; do
401+
_qe_args="$_qe_args -o -name $file"
415402
done
416403
417404
# shellcheck disable=SC2086
418405
find -L . -ignore_readdir_race \( \
419406
-name 'Beaker Browser' \
420-
$filterArgs \
407+
$_qe_args \
421408
-o -name 'Helios Launcher' \
422409
-o -name 'Code - Insiders' \
410+
-o -name 'Mullvad VPN' \
423411
-o -path ./kak/plugins \
424412
-o -path ./kak/autoload \
425413
-o -path ./cookiecutter/cookiecutters \
@@ -434,7 +422,7 @@ qe() {
434422
_qe_file="$XDG_CONFIG_HOME/$(printf "%s" "$_qe_file" | cut -c3-)"
435423
v "$_qe_file"
436424
history -s "v \"$_qe_file\""
437-
unset -v _qe_file
425+
unset -v _qe_list _qe_args _qe_file
438426
}
439427

440428
r() {
@@ -448,11 +436,6 @@ r() {
448436
unset -v _file
449437
}
450438

451-
# https://unix.stackexchange.com/a/123770
452-
see_old() {
453-
sudo lsof +c 0 | grep 'DEL.*lib' | awk '1 { print $1 ": " $NF }' | sort -u
454-
}
455-
456439
serv() {
457440
set -- "${1:-.}" "${2:-4000}"
458441

@@ -533,19 +516,6 @@ v() {
533516
unset -v _v_editor
534517
}
535518

536-
vtraceroute() {
537-
xdg-open "https://stefansundin.github.io/traceroute-mapper/?trace=$('traceroute' -q1 "$*" | sed ':a;N;$!ba;s/\n/%0A/g')"
538-
}
539-
540-
wa() {
541-
watch -cn.3 "$@"
542-
}
543-
544519
waf() {
545520
watch -cn.1 "$@"
546521
}
547-
548-
# watch slow
549-
was() {
550-
watch -cn1 "$@"
551-
}

config-shell/.profile-minimal.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# shellcheck shell=sh
2+
3+
_shell_original_path="$PATH"
4+
. ~/.dotfiles/config/xdg.sh
5+
6+
# XDG base directory variables must exist.
7+
if [ -z "$XDG_CONFIG_HOME" ] || [ -z "$XDG_DATA_HOME" ] || [ -z "$XDG_STATE_HOME" ] || [ -z "$XDG_CACHE_HOME" ]; then
8+
printf '%s\n' "Error: profile.sh: XDG base directory variables are not set. They should be set. Aborting source" >&2
9+
return 1
10+
fi
11+
12+
export EDITOR='nvim'
13+
export VISUAL='nvim'
14+
export PAGER='less'
15+
export MANPAGER='less'
16+
17+
_util_path_prepend "$HOME/.dotfiles/.data/bin"
18+
_util_path_prepend "$HOME/.local/bin"
19+
_util_source_file "$XDG_CONFIG_HOME/sh/aliases.sh"
20+
_util_source_file "$XDG_CONFIG_HOME/sh/func.sh"
21+
_util_source_file "$XDG_CONFIG_HOME/sh/func-override.sh"
22+
if [ -z "${BASH_VERSION:-}" ] && [ -z "${ZSH_VERSION:-}" ] && [ -z "${KSH_VERSION:-}" ]; then
23+
_util_source_dir "$XDG_CONFIG_HOME/sh/shell.d"
24+
fi
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
git_protocol: 'ssh'
22
prompt: 'enabled'
33
aliases:
4-
repocr: 'repo create --disable-wiki --public'
4+
repocr: 'repo create --disable-wiki --public'
55
version: '1'

config/dotfiles.c

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#include <stdbool.h>
22
#include <stddef.h>
3+
#include <limits.h>
4+
#include <string.h>
5+
#include <unistd.h>
36
#include "d.h"
47

58
#pragma clang diagnostic warning "-Wunused-variable"
@@ -350,16 +353,6 @@ static Item kshrc[] = HomeEntry(".kshrc", CategoryShell);
350353
static Item login[] = HomeEntry(".login", CategoryShell);
351354
static Item mkshrc[] = HomeEntry(".mkshrc", CategoryShell);
352355
static Item tcshrc[] = HomeEntry(".tcshrc", CategoryShell);
353-
static Item basicShellGroup = {
354-
.type = TYPE_GROUP,
355-
.entries = (Item *[]){
356-
sh,
357-
bash,
358-
readline,
359-
zsh,
360-
NULL
361-
}
362-
};
363356
static Item defaultShellGroup = {
364357
.type = TYPE_GROUP,
365358
.entries = (Item *[]){
@@ -383,6 +376,7 @@ static Item serverShellGroup = {
383376
sh,
384377
bash,
385378
readline,
379+
zsh,
386380
NULL
387381
}
388382
};
@@ -475,6 +469,17 @@ static Deployment serverDeployment = {
475469
}
476470
};
477471

472+
static Deployment homeServerDeployment = {
473+
.name = "Home Server",
474+
.items = (Item *[]){
475+
&serverLinuxCoreGroup,
476+
&serverShellGroup,
477+
&serverTerminalGroup,
478+
&basicVersionControlGroup,
479+
&serverEditorGroup,
480+
}
481+
};
482+
478483
static Deployment riceDeployment = {
479484
.name = "Rice",
480485
.items = (Item *[]){
@@ -623,6 +628,7 @@ static Deployment* deployments[] = {
623628
&defaultDeployment,
624629
&serverDeployment,
625630
&riceDeployment,
631+
&homeServerDeployment,
626632
NULL
627633
};
628634

config/setup.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ else
1818
core.print_warn "Failed to find file ~/.dotfiles/.data/github_token"
1919
fi
2020

21-
if [ -f ~/.dotfiles/vendor/setup.sh/setup.sh ]; then
22-
source ~/.dotfiles/vendor/setup.sh/setup.sh
23-
else
24-
core.print_warn "Failed to find file ~/.dotfiles/vendor/setup.sh/setup.sh"
25-
fi
21+
source ~/.dotfiles/vendor/setup.sh/setup.sh
2622

2723
if [ -z "$XDG_CONFIG_HOME" ]; then
2824
printf '%s\n' 'Failed because $XDG_CONFIG_HOME is empty' >&2
@@ -39,7 +35,11 @@ fi
3935

4036
CURL_CONFIG="$HOME/.dotfiles/config/curl_config.conf"
4137

42-
source ~/.dotfiles/config/setup-private.sh
38+
if [ -f ~/.dotfiles/config/setup-private.sh ]; then
39+
source ~/.dotfiles/config/setup-private.sh
40+
else
41+
core.print_warn "Failed to find file ~/.dotfiles/config/setup-private.sh"
42+
fi
4343

4444
util.is_in_container_or_chroot() {
4545
core.print_warn 'Detecting if running in a container or chroot.'

scripts/doctor.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ main() {
133133
local cur=
134134
local options='charizard|swampert|dragonfruit|juno-laptop|other'
135135
while [[ $cur != @($options) ]]; do
136-
printf '%s' "Computer profile? ($options): "
137-
read -er cur
136+
read -er -p "Computer profile? ($options): " -i "$HOSTNAME" cur
138137
done
139138
must.dir ~/.dotfiles/.data
140139
printf '%s\n' "$cur" >~/.dotfiles/.data/profile
@@ -290,7 +289,7 @@ main() {
290289

291290
# Install necessary drivers.
292291
if [[ $computer_profile == @(juno-laptop) ]]; then
293-
~/scripts/setup/juno-computers.sh
292+
~/scripts/setup/juno-computer.sh
294293
fi
295294

296295
# Install the most paramount tools.

0 commit comments

Comments
 (0)