summaryrefslogtreecommitdiff
path: root/users/seth/shell
diff options
context:
space:
mode:
authorseth <[email protected]>2023-03-13 18:14:41 -0400
committerseth <[email protected]>2023-03-13 18:15:23 -0400
commit93b5d17fbd32c6de63920aaa40821be255bfc9dd (patch)
treea7147c8a22be74f6ecbd45dd80cc6d2ed96c7113 /users/seth/shell
parent97e2a9823e3e421f547c3417aa7df7ef5834db29 (diff)
remove puffer-fish, fix autopair for fish
Diffstat (limited to 'users/seth/shell')
-rw-r--r--users/seth/shell/default.nix2
-rw-r--r--users/seth/shell/fish.nix20
2 files changed, 12 insertions, 10 deletions
diff --git a/users/seth/shell/default.nix b/users/seth/shell/default.nix
index f637e03..0811779 100644
--- a/users/seth/shell/default.nix
+++ b/users/seth/shell/default.nix
@@ -42,7 +42,7 @@
sessionVariables = {
EDITOR = "nvim";
VISUAL = "$EDITOR";
- GPG_TTY = "$TTY";
+ GPG_TTY = "$(tty)";
CARGO_HOME = "${config.xdg.dataHome}/cargo";
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
LESSHISTFILE = "${config.xdg.stateHome}/less/history";
diff --git a/users/seth/shell/fish.nix b/users/seth/shell/fish.nix
index 4be0322..f900349 100644
--- a/users/seth/shell/fish.nix
+++ b/users/seth/shell/fish.nix
@@ -23,22 +23,24 @@
if test -e $nixfile
source $nixfile
end
+
fish_config theme choose "Catppuccin Mocha"
nix-your-shell fish | source
+
+ abbr -a !! --position anywhere --function last_history_item
'';
+ functions = {
+ last_history_item.body = "echo $history[1]";
+ };
+
plugins = [
{
name = "autopair-fish";
- src = pkgs.fishPlugins.autopair-fish;
- }
-
- {
- name = "puffer-fish";
src = pkgs.fetchFromGitHub {
- owner = "nickeb96";
- repo = "puffer-fish";
- rev = "fd0a9c95da59512beffddb3df95e64221f894631";
- sha256 = "sha256-aij48yQHeAKCoAD43rGhqW8X/qmEGGkg8B4jSeqjVU0=";
+ owner = "jorgebucaran";
+ repo = "autopair.fish";
+ rev = "4d1752ff5b39819ab58d7337c69220342e9de0e2";
+ sha256 = "sha256-qt3t1iKRRNuiLWiVoiAYOu+9E7jsyECyIqZJ/oRIT1A=";
};
}
];