From 3ba98ddbaa3050be3be8939e904c27c6c73cb86f Mon Sep 17 00:00:00 2001 From: Marcel Robitaille Date: Fri, 9 Sep 2022 14:58:56 -0300 Subject: [PATCH] [zsh] Add forgit git fzf helper --- forgit | 1 + zsh/.zshrc | 11 ++++++++++- zsh/custom/exports.sh | 7 +++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 160000 forgit diff --git a/forgit b/forgit new file mode 160000 index 0000000..3f50933 --- /dev/null +++ b/forgit @@ -0,0 +1 @@ +Subproject commit 3f50933f047510020428114551da0ee5cdfb32a3 diff --git a/zsh/.zshrc b/zsh/.zshrc index 5562dd9..da07664 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,10 +1,19 @@ + +# Plugins +source ~/.zplug/init.zsh + +# A utility tool powered by fzf for using git interactively. +zplug 'wfxr/forgit' + +zplug load --verbose + export ZSH=$HOME/.oh-my-zsh export FPATH=/usr/share/zsh/site-functions:/usr/share/zsh/functions/Calendar:/usr/share/zsh/functions/Chpwd:/usr/share/zsh/functions/Completion:/usr/share/zsh/functions/Completion/Base:/usr/share/zsh/functions/Completion/Linux:/usr/share/zsh/functions/Completion/Unix:/usr/share/zsh/functions/Completion/X:/usr/share/zsh/functions/Completion/Zsh:/usr/share/zsh/functions/Exceptions:/usr/share/zsh/functions/Math:/usr/share/zsh/functions/MIME:/usr/share/zsh/functions/Misc:/usr/share/zsh/functions/Newuser:/usr/share/zsh/functions/Prompts:/usr/share/zsh/functions/TCP:/usr/share/zsh/functions/VCS_Info:/usr/share/zsh/functions/VCS_Info/Backends:/usr/share/zsh/functions/Zftp:/usr/share/zsh/functions/Zle:$FPATH fpath+=$HOME/.zsh/pure ZSH_THEME="" -plugins=(git pass) +plugins=(pass) source "$ZSH/oh-my-zsh.sh" source "$HOME/.zsh/async/async.zsh" diff --git a/zsh/custom/exports.sh b/zsh/custom/exports.sh index b35be0f..a840de4 100644 --- a/zsh/custom/exports.sh +++ b/zsh/custom/exports.sh @@ -112,3 +112,10 @@ export MANPAGER='nvim +Man!' # export ANDROID_HOME=~/.android-sdk + + +# +# Forgit +# + +export PATH="$PATH:$FORGIT_INSTALL_DIR/bin"