From 272703b8cf7cbd8b5e17f18c5ca3e3558fce58a9 Mon Sep 17 00:00:00 2001 From: Kevin Zhuang Date: Thu, 28 Jan 2021 09:57:26 +1100 Subject: [PATCH] feat: added some basic/common purpose zle widget. #24 --- dotbare.plugin.zsh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/dotbare.plugin.zsh b/dotbare.plugin.zsh index 6412abe..dd15c0c 100644 --- a/dotbare.plugin.zsh +++ b/dotbare.plugin.zsh @@ -148,3 +148,39 @@ _dotbare_completion_git() { local compdef_name="dotbare" compdef "${compdef_name}"=git } + +_widget_dotbare_fadd() { + dotbare fadd +} + +_widget_dotbare_fedit() { + dotbare fedit +} + +_widget_dotbare_fcheckout() { + dotbare fcheckout +} + +_widget_dotbare_freset() { + dotbare freset +} + +_widget_dotbare_flog() { + dotbare flog +} + +_widget_dotbare_fgrep() { + dotbare fgrep +} + +_widget_dotbare_fstat() { + dotbare fstat +} + +zle -N dotbare-fadd _widget_dotbare_fadd +zle -N dotbare-fedit _widget_dotbare_fedit +zle -N dotbare-fcheckout _widget_dotbare_fcheckout +zle -N dotbare-freset _widget_dotbare_reset +zle -N dotbare-flog _widget_dotbare_flog +zle -N dotbare-fgrep _widget_dotbare_fgrep +zle -N dotbare-fstat _widget_dotbare_fstat