From d22ae48b3eeda8a77a0ba2cfbe1806896ace8471 Mon Sep 17 00:00:00 2001 From: Michael Yockey Date: Mon, 22 Sep 2025 10:40:36 -0400 Subject: [PATCH] feat: Add common atuin install --- dependencies/homebrew.txt | 1 - install.zsh | 5 +++++ zsh/dot-zshrc | 13 +++++-------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/dependencies/homebrew.txt b/dependencies/homebrew.txt index 38d79c3..b04afc3 100644 --- a/dependencies/homebrew.txt +++ b/dependencies/homebrew.txt @@ -1,4 +1,3 @@ -atuin direnv fastfetch fd diff --git a/install.zsh b/install.zsh index ad3bd96..b985c46 100755 --- a/install.zsh +++ b/install.zsh @@ -58,6 +58,11 @@ pushd tmux/.config/tmux/plugins git -C tpm pull || git clone git@github.com:tmux-plugins/tpm.git tpm popd +if ! command -v atuin > /dev/null; then + echo "Installing Atuin" + bash <(curl --proto '=https' --tlsv1.2 -sSf https://setup.atuin.sh) +fi + echo "Linking files" stow --dotfiles -t ~ zsh stow --dotfiles -t ~ ruby diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index e410f55..1970d4a 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -18,21 +18,23 @@ if command -v pyenv &>/dev/null; then eval "$(pyenv init -)" fi +autoload -Uz compinit +compinit + # ZOxide, cd alternative eval "$(zoxide init --cmd cd zsh)" # atuin, shell command stats PATH="$HOME/.atuin/bin:$PATH" eval "$(atuin init zsh)" +eval "$(atuin gen-completions --shell zsh)" if type brew &>/dev/null; then FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH export PATH="/usr/local/sbin:$PATH" - - autoload -Uz compinit - compinit fi + # zsh-autosuggestions case `uname` in Darwin) @@ -80,11 +82,6 @@ case `uname` in ;; esac -. "$HOME/.atuin/bin/env" - -eval "$(atuin init zsh)" -eval "$(atuin gen-completions --shell zsh)" - # opencode export PATH=/home/myockey/.opencode/bin:$PATH # The following lines have been added by Docker Desktop to enable Docker CLI completions.