fish: standardize config structure

This commit is contained in:
2026-01-04 19:11:27 +01:00
parent 4e2a3ed796
commit 2fc4d242dd
14 changed files with 18 additions and 35 deletions
+11
View File
@@ -0,0 +1,11 @@
if not set -q fetch_logo_type
set -g fetch_logo_type kitty
end
if test $(pgrep -u $USER -x kitty | wc -l) -ge 2
set -g no_fetch
end
spotify-lyrics completion fish | source
alias gduu "sudo gdu -i /media/Alpha -i /media/Beta -i /media/Gamma -i /.snapshots -i /home/.snapshots /"
@@ -25,4 +25,4 @@ if type -q helix; and not type -q hx
end
# gpg
set -x -g GPG_TTY (tty)
set -x -g GPG_TTY (tty)
@@ -19,4 +19,4 @@ if test -n "$XDG_CURRENT_DESKTOP"; and test "$XDG_CURRENT_DESKTOP" = "niri"
end
end < "$env_config"
end
end
end
@@ -11,4 +11,4 @@ if type -q ssh
end
ssh $argv
end
end
end
@@ -9,4 +9,4 @@ end
# oh-my-posh
if test -f $HOME/.config/posh_theme.omp.json; and type -q oh-my-posh
oh-my-posh init fish --config $HOME/.config/posh_theme.omp.json | source
end
end
-16
View File
@@ -4,19 +4,3 @@ end
# no greeting
set fish_greeting
if test -d $HOME/.config/fish/prev.d
for file in $HOME/.config/fish/prev.d/*.fish
if test -f $file
source $file
end
end
end
if test -d $HOME/.config/fish/post.d
for file in $HOME/.config/fish/post.d/*.fish
if test -f $file
source $file
end
end
end
-6
View File
@@ -1,6 +0,0 @@
*
!.gitignore
!fetch.fish
!sshs.fish
!alias.fish
!ghostty.fish
-6
View File
@@ -1,6 +0,0 @@
*
!.gitignore
!prompt.fish
!theme.fish
!env.fish
!niri-env.fish