summaryrefslogtreecommitdiff
path: root/users/seth/shell/fish.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-01 01:37:05 -0400
committerseth <[email protected]>2023-05-01 01:37:05 -0400
commitdb2a176495a8d212cacde6cb38162ea1cd30ee1c (patch)
tree62744d6f62abde17724974357b484b491ac7cd1d /users/seth/shell/fish.nix
parent96ba85bd431b96c71357afdb265c93c806d063da (diff)
update shell configs
Diffstat (limited to 'users/seth/shell/fish.nix')
-rw-r--r--users/seth/shell/fish.nix22
1 files changed, 11 insertions, 11 deletions
diff --git a/users/seth/shell/fish.nix b/users/seth/shell/fish.nix
index f900349..feb12b3 100644
--- a/users/seth/shell/fish.nix
+++ b/users/seth/shell/fish.nix
@@ -18,6 +18,7 @@
programs.fish = {
enable = true;
+
interactiveShellInit = ''
set -l nixfile ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.fish
if test -e $nixfile
@@ -29,20 +30,19 @@
abbr -a !! --position anywhere --function last_history_item
'';
+
functions = {
last_history_item.body = "echo $history[1]";
};
- plugins = [
- {
- name = "autopair-fish";
- src = pkgs.fetchFromGitHub {
- owner = "jorgebucaran";
- repo = "autopair.fish";
- rev = "4d1752ff5b39819ab58d7337c69220342e9de0e2";
- sha256 = "sha256-qt3t1iKRRNuiLWiVoiAYOu+9E7jsyECyIqZJ/oRIT1A=";
- };
- }
- ];
+ plugins = let
+ mkFishPlugins = builtins.map (plugin: {
+ name = plugin;
+ inherit (pkgs.fishPlugins.${plugin}) src;
+ });
+ in
+ mkFishPlugins [
+ "autopair"
+ ];
};
}