initial release

This commit is contained in:
thomas committed 2026-11-17 09:28:47 +01:00
1 parent 96ab3df34e
commit 9876e39216
57 files changed
+5301 -1

No files matched your search

+102
View File
@@ -0,0 +1,102 @@
# ~/.config/fish/config.fish
# Breeze-Dark-Farbschema für fish
# ---------- PATH ----------
# opencode
if test -d "$HOME/.opencode/bin"; and not contains -- "$HOME/.opencode/bin" $PATH
set -gx PATH "$HOME/.opencode/bin" $PATH
end
# Node.js (nvm)
# Standardversion aus ~/.nvm/alias/default ableiten, damit der Pfad auch
# nach einem nvm-Versionswechsel stimmt ("26", "v26.13.0", "lts/*").
set -gx NVM_DIR "$HOME/.nvm"
if test -d "$HOME/.nvm/versions/node"
set -l nvm_alias
if test -f "$HOME/.nvm/alias/default"
set nvm_alias (string trim < "$HOME/.nvm/alias/default")
end
# Verschachtelte Aliase wie lts/* -> lts/lithium -> v26.13.0 auflösen
for i in 1 2 3
test -n "$nvm_alias"; or break
test -f "$HOME/.nvm/alias/$nvm_alias"; or break
set nvm_alias (string trim < "$HOME/.nvm/alias/$nvm_alias")
end
set -l nvm_matches
if test -n "$nvm_alias"
for d in "$HOME"/.nvm/versions/node/v$nvm_alias.* "$HOME"/.nvm/versions/node/$nvm_alias
test -x "$d/bin/node"; and set -a nvm_matches $d
end
end
# Ohne auflösbaren Alias: neueste installierte Version nehmen
if test (count $nvm_matches) -eq 0
for d in "$HOME"/.nvm/versions/node/*/
test -x "$d/bin/node"; and set -a nvm_matches (string trim -r -c / -- $d)
end
end
if test (count $nvm_matches) -gt 0
set -l nvm_bin (printf '%s\n' $nvm_matches | sort -V | tail -n 1)/bin
if not contains -- "$nvm_bin" $PATH
set -gx PATH "$nvm_bin" $PATH
end
end
end
# Eigene Skripte
if test -d "$HOME/.local/bin"; and not contains -- "$HOME/.local/bin" $PATH
set -gx PATH "$HOME/.local/bin" $PATH
end
# Flatpak-Programme (z. B. org.mozilla.firefox)
for dir in /var/lib/flatpak/exports/bin "$HOME/.local/share/flatpak/exports/bin"
if test -d "$dir"; and not contains -- "$dir" $PATH
set -gx PATH $PATH "$dir"
end
end
# Systemwerkzeuge aus sbin (z. B. gparted, adduser, halt, blkid)
for dir in /usr/local/sbin /usr/sbin /sbin
if test -d "$dir"; and not contains -- "$dir" $PATH
set -gx PATH $PATH "$dir"
end
end
# ---------- X11 / XWayland ----------
# SSH-Sitzungen haben kein DISPLAY. labwc stellt XWayland auf :0 bereit,
# damit X11-Programme (als Benutzer) auf dem Desktop erscheinen.
# Für als root gestartete X11-Programme reicht DISPLAY nicht; GParted
# nutzt stattdessen die Wayland-Anzeige (siehe /usr/sbin/gparted).
if not set -q DISPLAY; and test -S /tmp/.X11-unix/X0
set -gx DISPLAY :0
end
if status is-interactive
set -gx EDITOR nano
set -gx VISUAL nano
set -gx PAGER less
set -gx MANPAGER 'less -R'
set -gx TERMINAL kitty
# Pfadanzeige im Prompt: vollständig, aber mit ~ abgekürzt
set -g fish_prompt_pwd_dir_length 0
# Farben stehen in ~/.config/fish/conf.d/10-theme.fish
# (wird vom Desktop-Theme hell/dunkel gesetzt)
# ---------- Abkürzungen ----------
abbr -a ls 'ls --color=auto'
abbr -a ll 'ls -lah --color=auto'
abbr -a la 'ls -A --color=auto'
abbr -a lt 'ls -lah --color=auto --sort=time'
abbr -a .. 'cd ..'
abbr -a ... 'cd ../..'
abbr -a c clear
abbr -a df 'df -h'
abbr -a free 'free -h'
abbr -a ff fastfetch
abbr -a files thunar
abbr -a reload 'pkill -HUP -x labwc'
abbr -a session session-menu
end