From 4febb79d7ffcf7251be92b438788dbb976935dba Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Thu, 4 Jan 2024 20:59:20 -0600 Subject: [PATCH] atuin: add config --- atuin/config.toml | 39 ++++++++++++++++++++++++++++++++ install/install-brew-packages.sh | 1 + install/install-symlinks.sh | 1 + nix/packages.nix | 1 + 4 files changed, 42 insertions(+) create mode 100644 atuin/config.toml diff --git a/atuin/config.toml b/atuin/config.toml new file mode 100644 index 0000000..5413833 --- /dev/null +++ b/atuin/config.toml @@ -0,0 +1,39 @@ +# https://atuin.sh/docs/config/#client-config + +# Whether to automatically sync. +auto_sync = true + +# Whether to automatically check for updates. +update_check = false + +# The address of the server to sync with. +sync_address = "https://atuin.gould.dev" + +# If set to 0, sync will occur after every command. +sync_frequency = "10m" + +# Possible values: prefix, fulltext, fuzzy, skim. +search_mode = "fuzzy" +search_mode_shell_up_key_binding = "fuzzy" + +# Possible values: global, host, session, directory. +filter_mode = "global" +filter_mode_shell_up_key_binding = "global" + +# Possible values: auto, full, compact. +style = "auto" + +# If set to 0, always go full screen. +inline_height = 0 + +# Whether to put the search bar at the top instead of the bottom. +invert = true + +# Whether to show a preview of the selected command. +show_preview = true + +# Possible values: return-original, return-query. +exit_mode = "return-original" + +# Possible values: emacs, subl. +word_jump_mode = "emacs" diff --git a/install/install-brew-packages.sh b/install/install-brew-packages.sh index aef9220..26848fc 100755 --- a/install/install-brew-packages.sh +++ b/install/install-brew-packages.sh @@ -6,6 +6,7 @@ ROOTDIR=$(cd "$(dirname "$0")/.." && pwd) # Install required tools brew install \ + atuin \ bat \ fd \ fish \ diff --git a/install/install-symlinks.sh b/install/install-symlinks.sh index d73fc85..7267a65 100755 --- a/install/install-symlinks.sh +++ b/install/install-symlinks.sh @@ -20,6 +20,7 @@ install_symlink() { ln -fnsv "$srcdir" "$dstdir" } +install_symlink "$ROOTDIR/atuin" "$HOME/.config/atuin" install_symlink "$ROOTDIR/fd" "$HOME/.config/fd" install_symlink "$ROOTDIR/fish" "$HOME/.config/fish" install_symlink "$ROOTDIR/git" "$HOME/.config/git" diff --git a/nix/packages.nix b/nix/packages.nix index 8a015e0..6c9c3de 100644 --- a/nix/packages.nix +++ b/nix/packages.nix @@ -3,6 +3,7 @@ # Whenever it changes, run `nix-env -irf ~/.config/nix/packages.nix` to reinstall the environment. with import {}; [ + atuin bat delta direnv -- 2.45.2