~crg/config

4febb79d7ffcf7251be92b438788dbb976935dba — Charles Gould 8 months ago 4171488
atuin: add config
4 files changed, 42 insertions(+), 0 deletions(-)

A atuin/config.toml
M install/install-brew-packages.sh
M install/install-symlinks.sh
M nix/packages.nix
A atuin/config.toml => atuin/config.toml +39 -0
@@ 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"

M install/install-brew-packages.sh => install/install-brew-packages.sh +1 -0
@@ 6,6 6,7 @@ ROOTDIR=$(cd "$(dirname "$0")/.." && pwd)

# Install required tools
brew install \
	atuin \
	bat \
	fd \
	fish \

M install/install-symlinks.sh => install/install-symlinks.sh +1 -0
@@ 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"

M nix/packages.nix => nix/packages.nix +1 -0
@@ 3,6 3,7 @@
# Whenever it changes, run `nix-env -irf ~/.config/nix/packages.nix` to reinstall the environment.

with import <nixpkgs> {}; [
    atuin
    bat
    delta
    direnv