feat: Add common atuin install

This commit is contained in:
Michael Yockey
2025-09-22 10:40:36 -04:00
parent afc474c35b
commit d22ae48b3e
3 changed files with 10 additions and 9 deletions

View File

@@ -1,4 +1,3 @@
atuin
direnv
fastfetch
fd

View File

@@ -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

View File

@@ -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.