mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-24 03:12:50 +01:00
Speed shell up with 'fixed' thefuck
This commit is contained in:
parent
2c0dd6666e
commit
df9430cde0
13
zsh/env
13
zsh/env
@ -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
|
Loading…
Reference in New Issue
Block a user