nichts/packages/shell/fishinit.nix

26 lines
724 B
Nix
Raw Normal View History

2024-11-01 15:54:20 +01:00
{
pkgs,
aliasesStr,
vendorConf,
2024-11-01 15:54:20 +01:00
}:
pkgs.writeTextDir "${vendorConf}/blox_config.fish"
# fish
''
2024-11-01 15:54:20 +01:00
# source ${pkgs.fishPlugins.sponge}/share/zsh-defer/zsh-defer.plugin.zsh
${pkgs.atuin}/bin/atuin init fish | source
${pkgs.zoxide}/bin/zoxide init fish | source
2024-11-02 12:38:44 +01:00
${pkgs.starship}/bin/starship init fish | source
2024-11-03 15:29:32 +01:00
${pkgs.direnv}/bin/direnv hook fish | source
${pkgs.pay-respects}/bin/pay-respects fish --alias f --nocnf | source
2024-11-01 15:54:20 +01:00
# I need to source /etc/profile using foreign-env, to get stuff set by nixos, e.g. environment.systemVariables.
# set -p fish_function_path ${pkgs.fishPlugins.foreign-env}/share/fish/vendor_functions.d
# fenv source /etc/profile
2025-01-15 09:00:19 +01:00
2024-11-01 15:54:20 +01:00
source ${./config.fish}
${aliasesStr}
''