feat(fish): some changes

This commit is contained in:
2025-12-07 16:34:21 +08:00
parent 99103ff9d2
commit 9ae37ea439

View File

@@ -18,6 +18,10 @@ lib.my.makeSwitch {
".local/share/fish" ".local/share/fish"
]; ];
my.hm = { my.hm = {
xdg.configFile."fish/themes/tokyonight_storm.theme".source = builtins.fetchurl {
url = "https://raw.githubusercontent.com/folke/tokyonight.nvim/refs/tags/v4.14.1/extras/fish_themes/tokyonight_storm.theme";
sha256 = "02n1w5x65683c8mlwg1rav06iqm3xk90zq45qmygpm7pzyn8dqh1";
};
programs.fish = { programs.fish = {
enable = true; enable = true;
plugins = [ plugins = [
@@ -38,14 +42,9 @@ lib.my.makeSwitch {
nf = "fastfetch"; nf = "fastfetch";
tmux = "tmux -T RGB,focus,overline,mouse,clipboard,usstyle"; tmux = "tmux -T RGB,focus,overline,mouse,clipboard,usstyle";
}; };
interactiveShellInit = '' interactiveShellInit = lib.mkBefore ''
fish_vi_key_bindings fish_vi_key_bindings
source ${ fish_config theme choose tokyonight_storm
builtins.fetchurl {
url = "https://raw.githubusercontent.com/folke/tokyonight.nvim/refs/tags/v4.14.1/extras/fish/tokyonight_storm.fish";
sha256 = "0a2pg78k8cv0hx8p02lxnb7giblwn7z9hnb6i6mdx4w5lg4wfg40";
}
}
''; '';
functions = { functions = {
fish_greeting = ""; fish_greeting = "";
@@ -88,6 +87,14 @@ lib.my.makeSwitch {
bind -s p 'set -g fish_cursor_end_mode exclusive' forward-char 'set -g fish_cursor_end_mode inclusive' fish_clipboard_paste bind -s p 'set -g fish_cursor_end_mode exclusive' forward-char 'set -g fish_cursor_end_mode inclusive' fish_clipboard_paste
bind -s P fish_clipboard_paste bind -s P fish_clipboard_paste
''; '';
nix-closure-size = {
body = ''
nix path-info --recursive --size --closure-size \
--human-readable $(readlink -f $(which $program))
'';
argumentNames = [ "program" ];
};
}; };
}; };
}; };