From 85533f3460d55a4f19955124daf6ea46e475904e Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Sun, 25 Feb 2024 21:08:59 +0000 Subject: [PATCH] feat: add atuin to handle shell history --- Dockerfile | 1 + config/atuin/config.toml | 5 +++++ docker-compose.yml | 1 + 3 files changed, 7 insertions(+) create mode 100644 config/atuin/config.toml diff --git a/Dockerfile b/Dockerfile index 37d1df9..c61585d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -97,6 +97,7 @@ ENV DO_URL https://download.docker.com/linux/static/stable/x86_64/docker-${DO_VE ENV DC_VERSION v2.23.3 ENV DC_URL https://github.com/docker/compose/releases/download/${DC_VERSION}/docker-compose-linux-x86_64 RUN curl -sS https://starship.rs/install.sh | sh -s -- --yes \ + && curl -sS https://setup.atuin.sh | bash \ && mkdir /tmp/download \ && curl -L ${DO_URL} | tar -zx -C /tmp/download \ && chgrp --recursive docker /tmp/download \ diff --git a/config/atuin/config.toml b/config/atuin/config.toml new file mode 100644 index 0000000..2ede0a7 --- /dev/null +++ b/config/atuin/config.toml @@ -0,0 +1,5 @@ +auto_sync = true +update_check = false +sync_address = "https://atuin.dubas.dev" +sync_frequency = "15m" +inline_height = 10 diff --git a/docker-compose.yml b/docker-compose.yml index 5d60144..2888639 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,7 @@ services: entrypoint: sleep command: infinity volumes: + - './config/atuin:/home/coder/.config/atuin' - './config/git:/home/coder/.config/git' - './config/mise:/home/coder/.config/mise' - './config/nvim/lua/custom:/home/coder/.config/nvim/lua/custom'