summaryrefslogtreecommitdiff
path: root/users/seth/shell/fish.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/seth/shell/fish.nix')
-rw-r--r--users/seth/shell/fish.nix18
1 files changed, 11 insertions, 7 deletions
diff --git a/users/seth/shell/fish.nix b/users/seth/shell/fish.nix
index 2afdf96..0f101cd 100644
--- a/users/seth/shell/fish.nix
+++ b/users/seth/shell/fish.nix
@@ -20,13 +20,17 @@ in
{
enable = true;
- # TODO: do i still need this weird sourcing?
- interactiveShellInit = lib.optionalString config.seth.standalone.enable ''
- set -l nixfile ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.fish
- if test -e $nixfile
- source $nixfile
- end
- '';
+ interactiveShellInit =
+ ''
+ ${lib.getExe pkgs.nix-your-shell} fish | source
+ ''
+ # TODO: do i still need this weird sourcing?
+ + lib.optionalString config.seth.standalone.enable ''
+ set -l nixfile ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.fish
+ if test -e $nixfile
+ source $nixfile
+ end
+ '';
functions = {
last_history_item.body = "echo $history[1]";