Skip to content

Commit 721e5d7

Browse files
committed
fix: move ZIM files to data/ subdir, fix kiwix docker path
1 parent 5324a58 commit 721e5d7

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ config/maps/plugins/z_fallback_llm/de-DE/llm_cache.db
105105

106106
# to large
107107
wikipedia_de_all_mini_2025-09.zim
108+
*.zim
109+
108110

109111
**/__pycache__/
110112
*.pyc

config/maps/plugins/standard_actions/wikipedia_local/de-DE/kiwix-docker-start-if-not-running.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ZIM_FILE_host="wikipedia_de_all_mini_2025-09.zim"
1313
echo "ZIM_FILE_host=$ZIM_FILE_host"
1414

1515
# 2. Der vollständige Pfad zur ZIM-Datei auf deinem PC
16-
ZIM_FILE_PATH_host="$HOME/Downloads/$ZIM_FILE_host"
16+
ZIM_FILE_PATH_host="$(dirname "$0")/data/$ZIM_FILE_host"
1717

1818
# 3. Identischer Name im Container
1919
CONTAINER_ZIM_NAME="$ZIM_FILE_host"
@@ -65,17 +65,9 @@ else
6565

6666
sudo systemctl start docker
6767
echo " docker daemon running?"
68-
69-
echo "may try following fist :"
70-
7168
echo "sudo systemctl start docker"
72-
echo "sudo systemctl enable docker"
73-
74-
echo " Mögliche Gründe: "
75-
echo " 1. Port $HOST_PORT ist belegt."
69+
echo " Mögliche Gründe: 1. Port $HOST_PORT ist belegt."
7670
echo " 2. ZIM-Datei korrupt oder Pfad falsch."
77-
echo " 3. docker nicht gesartet (systemctl start docker)."
78-
echo " 4. docker nicht enabled (systemctl enable docker)."
7971

8072

8173
fi

docs/linux/dev-tip-console-output-to-clipboard.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,22 @@ preexec() {
3636
esac
3737
}
3838

39+
3940
precmd() {
40-
# Restore stdout after command finishes
4141
exec >/dev/tty 2>&1
4242
if [ "$AUTO_CLIPBOARD" = "true" ] && [ -s ~/t.txt ]; then
43-
# Filter out ANSI escape codes and KDE Konsole title sequences
44-
cat ~/t.txt | sed 's/\][0-9]*;[^]]*\][0-9]*;//g; s/^[0-9]*;//g' \
45-
| xclip -selection clipboard
46-
echo "[📋 In Zwischenablage kopiert]"
43+
cleaned=$(cat ~/t.txt \
44+
| sed 's/\][0-9]*;[^]]*\][0-9]*;//g; s/^[0-9]*;//g' \
45+
| sed "s|$HOME|~|g" \
46+
| sed 's/[^[:print:]]//g' \
47+
| grep -v '^$')
48+
if [ -n "$cleaned" ]; then
49+
echo "$cleaned" | xclip -selection clipboard
50+
echo "[📋 In Zwischenablage kopiert]"
51+
fi
4752
fi
4853
}
54+
4955
```
5056

5157
Then reload:

0 commit comments

Comments
 (0)