fish: standardize config structure
This commit is contained in:
@@ -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 /"
|
||||
+1
-1
@@ -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)
|
||||
+1
-1
@@ -19,4 +19,4 @@ if test -n "$XDG_CURRENT_DESKTOP"; and test "$XDG_CURRENT_DESKTOP" = "niri"
|
||||
end
|
||||
end < "$env_config"
|
||||
end
|
||||
end
|
||||
end
|
||||
+1
-1
@@ -11,4 +11,4 @@ if type -q ssh
|
||||
end
|
||||
ssh $argv
|
||||
end
|
||||
end
|
||||
end
|
||||
+1
-1
@@ -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
|
||||
@@ -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
@@ -1,6 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
!fetch.fish
|
||||
!sshs.fish
|
||||
!alias.fish
|
||||
!ghostty.fish
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
!prompt.fish
|
||||
!theme.fish
|
||||
!env.fish
|
||||
!niri-env.fish
|
||||
Reference in New Issue
Block a user