Skip to content

Commit

Permalink
feat(nix): bump flakes and add atuin
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Dec 4, 2023
1 parent 793f7ec commit 29f4e8d
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 18 deletions.
4 changes: 4 additions & 0 deletions fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ set -a PATH "$HOME/bin/" "$HOME/.local/bin" "/opt/homebrew/bin" "$HOME/./go/bin/

# Initialize FZF keybindings
fzf_key_bindings
if status --is-interactive;
atuin init fish --disable-up-arrow | source
end


# Set terminal
set -g TERM screen-256color
Expand Down
4 changes: 2 additions & 2 deletions fish/functions/fzf_key_bindings.fish
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ function fzf_key_bindings
end

bind \ct fzf-file-widget
bind \cr fzf-history-widget
# bind \cr fzf-history-widget
bind \ec fzf-cd-widget

if bind -M insert > /dev/null 2>&1
bind -M insert \ct fzf-file-widget
bind -M insert \cr fzf-history-widget
# bind -M insert \cr fzf-history-widget
bind -M insert \ec fzf-cd-widget
end

Expand Down
2 changes: 1 addition & 1 deletion nix/darwin/home-manager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ in {
home.packages = pkgs.callPackage ./packages.nix {};

home.stateVersion = "23.05";
# programs = {} // import ../shared/home-manager.nix {inherit config pkgs lib;};
programs = import ../shared/home-manager.nix {inherit config pkgs lib;};
};
};
}
30 changes: 15 additions & 15 deletions nix/flake.lock

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

15 changes: 15 additions & 0 deletions nix/shared/home-manager.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
config,
pkgs,
lib,
...
}: let
name = "Sergei Bulavintsev";
user = "sab";
in {
# atuin = {
# enable = true;
# # Doesn't work for me right now, explicitly do it via fish
# enableFishIntegration = false;
# };
}
1 change: 1 addition & 0 deletions nix/shared/packages.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{pkgs}:
with pkgs; [
alejandra
atuin
bat
cmake
ctags
Expand Down

0 comments on commit 29f4e8d

Please sign in to comment.