34 lines
866 B
Nix
34 lines
866 B
Nix
{
|
|
pkgs,
|
|
aliasesStr,
|
|
vendorConf,
|
|
}:
|
|
pkgs.writeTextDir "${vendorConf}/blox_config.fish"
|
|
# fish
|
|
''
|
|
# source ${pkgs.fishPlugins.sponge}/share/zsh-defer/zsh-defer.plugin.zsh
|
|
${pkgs.atuin}/bin/atuin init fish | source
|
|
bind up _atuin_bind_up
|
|
|
|
${pkgs.zoxide}/bin/zoxide init fish | source
|
|
# abbr --erase cd &>/dev/null
|
|
# alias cd=__zoxide_z
|
|
|
|
# abbr --erase ci &>/dev/null
|
|
# alias ci=__zoxide_zi
|
|
|
|
|
|
${pkgs.starship}/bin/starship init fish | source
|
|
${pkgs.direnv}/bin/direnv hook fish | source
|
|
${pkgs.pay-respects}/bin/pay-respects fish --alias f --nocnf | source
|
|
|
|
# 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
|
|
|
|
source ${./config.fish}
|
|
|
|
|
|
${aliasesStr}
|
|
''
|