Skip to content

Commit

Permalink
feat: swap to atuin
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Rabbito <[email protected]>
  • Loading branch information
anthr76 committed May 1, 2024
1 parent 78d3780 commit c966f2e
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 46 deletions.
72 changes: 36 additions & 36 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 20 additions & 10 deletions home-manager/personalities/cli/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
enable = true;
shellAliases = {
yssh = "ssh-add -s ${pkgs.yubico-piv-tool}/lib/libykcs11.so";
tssh = if pkgs.stdenv.isLinux then "ssh-add -s ${pkgs.tpm2-pkcs11}/lib/libtpm2_pkcs11.so" else "";
tssh = if pkgs.stdenv.isLinux then "ssh-add -s ${pkgs.tpm2-pkcs11}/lib/libtpm2_pkcs11.so" else "echo Not supported.";
};
functions = {
fish_greeting = "";
Expand All @@ -14,14 +14,24 @@
};
gitignore = "curl -sL https://www.gitignore.io/api/$argv";
};
plugins = [{
name = "fzf";
src = pkgs.fetchFromGitHub {
owner = "PatrickF1";
repo = "fzf.fish";
rev = "v8.3";
sha256 = "eSNUqvKXTxcuvICxo8BmVWL1ESXQuU7VhOl7aONrhwM=";
};
}];
};
programs.fzf = {
enable = true;
enableFishIntegration = true;
};

programs.atuin = {
enable = true;
enableFishIntegration = true;
flags = [ "--disable-up-arrow" ];
settings = {
auto_sync = true;
sync_frequency = "5m";
sync_address = "https://api.atuin.sh";
search_mode = "fuzzy";
filter_mode_shell_up_key_binding = "directory";
style = "compact";
};
};

}

0 comments on commit c966f2e

Please sign in to comment.