Speed shell up with 'fixed' thefuck

This commit is contained in:
Jan Jastrow 2023-09-04 04:05:57 +02:00
parent 2c0dd6666e
commit df9430cde0
1 changed files with 7 additions and 8 deletions

15
zsh/env
View File

@ -79,11 +79,10 @@ fi
# evals # evals
# #
# TheFuck # Replace default `thefuck` eval with suggestion from GitHub
if [[ -x $(which thefuck) ]]; then # https://github.com/nvbn/thefuck/issues/859
eval "$(thefuck --alias)" if command -v thefuck >/dev/null 2>&1; then
# You can use whatever you want as an alias, like for Mondays: fuck() {
eval "$(thefuck --alias FUCK)" eval "$(thefuck --alias)" && fuck
}
alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R' fi
fi