X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fthefuck%2Fthefuck.plugin.zsh;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fthefuck%2Fthefuck.plugin.zsh;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=2ab4eb6e270699b87fbf7a411962372808664ada;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/thefuck/thefuck.plugin.zsh b/stow/oh-my-zsh/.oh-my-zsh/plugins/thefuck/thefuck.plugin.zsh deleted file mode 100644 index 2ab4eb6..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/thefuck/thefuck.plugin.zsh +++ /dev/null @@ -1,21 +0,0 @@ -if [[ -z $commands[thefuck] ]]; then - echo 'thefuck is not installed, you should "pip install thefuck" or "brew install thefuck" first.' - echo 'See https://github.com/nvbn/thefuck#installation' - return 1 -fi - -# Register alias -[[ ! -a $ZSH_CACHE_DIR/thefuck ]] && thefuck --alias > $ZSH_CACHE_DIR/thefuck -source $ZSH_CACHE_DIR/thefuck - -fuck-command-line() { - local FUCK="$(THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)" - [[ -z $FUCK ]] && echo -n -e "\a" && return - BUFFER=$FUCK - zle end-of-line -} -zle -N fuck-command-line -# Defined shortcut keys: [Esc] [Esc] -bindkey -M emacs '\e\e' fuck-command-line -bindkey -M vicmd '\e\e' fuck-command-line -bindkey -M viins '\e\e' fuck-command-line