From d0eed5ed1748188bcccd7009d67b39939e17953a Mon Sep 17 00:00:00 2001 From: Xevion Date: Fri, 8 Nov 2024 19:51:04 -0600 Subject: [PATCH] Add thefuck alias & zsh plugin --- home/dot_bashrc.tmpl | 4 ++++ home/dot_zshrc.tmpl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/home/dot_bashrc.tmpl b/home/dot_bashrc.tmpl index b3560cc..222b9f0 100644 --- a/home/dot_bashrc.tmpl +++ b/home/dot_bashrc.tmpl @@ -98,6 +98,10 @@ if ! shopt -oq posix; then fi fi +if command -v thefuck &> /dev/null; then + eval $(thefuck --alias) +fi + {{/* Common shared aliases, scripts, & shell setup details. */ -}} {{ template "scripts/commonrc.sh.tmpl" dict "data" . "shell" "bash" }} diff --git a/home/dot_zshrc.tmpl b/home/dot_zshrc.tmpl index 085ed9a..2ebcb38 100644 --- a/home/dot_zshrc.tmpl +++ b/home/dot_zshrc.tmpl @@ -24,7 +24,7 @@ DISABLE_AUTO_UPDATE="true" # required for chezmoi external management # DISABLE_UNTRACKED_FILES_DIRTY="true" # HIST_STAMPS="mm/dd/yyyy" -plugins=(git asdf yarn golang sudo zoxide bun node npm brew zsh-autosuggestions F-Sy-H) +plugins=(git asdf yarn golang sudo zoxide bun node npm brew zsh-autosuggestions F-Sy-H thefuck) source $ZSH/oh-my-zsh.sh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # configure with `p10k configure`