Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync shell history #266

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions home-manager/bash.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
programs.zoxide.enableBashIntegration = true;
programs.fzf.enableBashIntegration = true;
programs.rtx.enableBashIntegration = true;
programs.atuin.enableBashIntegration = true;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/atuinsh/atuin/discussions/1683

hmm... I want to keep bash as plain as possible, it is the first intention of preferreing zsh kachick/times_kachick#184

Want sytaxhighlighting, bash cannot it, ble.sh realize it, ble.sh looks so big project for me


# Used only in bash - https://unix.stackexchange.com/a/689403
# https://github.com/nix-community/home-manager/blob/master/modules/programs/readline.nix
Expand Down
1 change: 1 addition & 0 deletions home-manager/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
programs.zoxide.enableFishIntegration = true;
programs.fzf.enableFishIntegration = true;
programs.rtx.enableFishIntegration = true;
programs.atuin.enableFishIntegration = true;

xdg.configFile."fish/fish_variables".source = ../home/.config/fish/fish_variables;
xdg.configFile."fish/functions/fish_prompt.fish".source = ../home/.config/fish/functions/fish_prompt.fish;
Expand Down
14 changes: 14 additions & 0 deletions home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,18 @@

# https://github.com/nix-community/home-manager/blob/master/modules/programs/rtx.nix
programs.rtx.enable = true;

# https://github.com/nix-community/home-manager/blob/master/modules/programs/atuin.nix
programs.atuin = {
enable = true;

flags = [
# https://github.com/atuinsh/atuin/issues/51
"--disable-up-arrow"
];

settings = {
sync_address = "https://127.0.0.1";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probably also want auto_sync = false 😁

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for letting me know!

I may use atuin with self hosting 🐋

};
};
}
1 change: 1 addition & 0 deletions home-manager/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
direnv
zoxide
fzf
atuin

# Used in anywhere
coreutils
Expand Down
1 change: 1 addition & 0 deletions home-manager/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
programs.zoxide.enableZshIntegration = true;
programs.fzf.enableZshIntegration = true;
programs.rtx.enableZshIntegration = true;
programs.atuin.enableZshIntegration = true;

# https://nixos.wiki/wiki/Zsh
# https://github.com/nix-community/home-manager/blob/master/modules/programs/zsh.nix
Expand Down