Skip to content

Commit

Permalink
Add atuin for shell history
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsbrus committed May 6, 2023
1 parent 18233dd commit 286d8d6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions home/cli.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ in
enable = true;
};

programs.atuin = {
enable = true;
enableZshIntegration = true;
};

programs.direnv = {
enable = true;
nix-direnv.enable = true;
Expand Down
16 changes: 11 additions & 5 deletions sys/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ in
# direnv hook
eval "$(direnv hook zsh)"
# enable fzf
if command -v fzf-share &> /dev/null; then
source "$(fzf-share)/key-bindings.zsh"
source "$(fzf-share)/completion.zsh"
fi
# enable atuin
if command -v atuin &> /dev/null; then
eval "$(atuin init zsh)"
fi
# Load version control info
autoload -Uz vcs_info
precmd() { vcs_info }
Expand All @@ -45,11 +56,6 @@ in
# Add timestamps in history
HIST_STAMPS="dd.mm.yyyy"
# enable fzf
if command -v fzf-share >/dev/null; then
source "$(fzf-share)/key-bindings.zsh"
source "$(fzf-share)/completion.zsh"
fi
export EDITOR=vim
Expand Down

0 comments on commit 286d8d6

Please sign in to comment.