Skip to content

Commit

Permalink
🐛 Fix many syntax errors
Browse files Browse the repository at this point in the history
Signed-off-by: Sven "qoreQyaS" Grewe <git@gucke.net>
  • Loading branch information
Sven "qoreQyaS" Grewe authored and Freed-Wu committed Jan 21, 2023
1 parent 22f40f8 commit 2df0998
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions sources/-command-.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ case $group in
;;
parameter)
echo ${(P)word}
;;
esac
3 changes: 1 addition & 2 deletions sources/git-checkout.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ case $group in
git diff $word | delta
;;
'recent commit object name')
git log --color=always $word | perl -pe$(jq -j '.[] as $i | "s=" + $i.code + "=" + $i.emoji + "=g;"' ~/.gitmoji/gitmojis.json)
| delta
git log --color=always $word | perl -pe$(jq -j '.[] as $i | "s=" + $i.code + "=" + $i.emoji + "=g;"' ~/.gitmoji/gitmojis.json) | delta
;;
*)
git log --color=always $word | perl -pe$(jq -j '.[] as $i | "s=" + $i.code + "=" + $i.emoji + "=g;"' ~/.gitmoji/gitmojis.json)
Expand Down
4 changes: 2 additions & 2 deletions sources/git-reflog.zsh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# :fzf-tab:complete:git-reflog(|-*):argument-1
case $group in
command)
git reflog --color=always show | perl -pe$(jq -j '.[] as $i | "s=" + $i.code + "=" + $i.emoji + "=g;"' ~/.gitmoji/gitmojis.json
git reflog --color=always show | perl -pe$(jq -j '.[] as $i | "s=" + $i.code + "=" + $i.emoji + "=g;"' ~/.gitmoji/gitmojis.json)
;;
reference)
git reflog --color=always $word | perl -pe$(jq -j '.[] as $i | "s=" + $i.code + "=" + $i.emoji + "=g;"' ~/.gitmoji/gitmojis.json
git reflog --color=always $word | perl -pe$(jq -j '.[] as $i | "s=" + $i.code + "=" + $i.emoji + "=g;"' ~/.gitmoji/gitmojis.json)
;;
esac
1 change: 1 addition & 0 deletions sources/pygmentize.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
case $group in
L)
pygmentize -L $word | bat --color=always -plrst
;;
*)
[[ -f ${realpath#--*=} ]] && pygmentize ${realpath#--*=} || less ${realpath#--*=}
;;
Expand Down
11 changes: 7 additions & 4 deletions sources/run-help.zsh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# :fzf-tab:complete:(\\|)run-help:argument-rest
# Note run-help usually is an alias, remember:
# NOTE: `run-help` is an alias of `man` in zsh by default,
# which means `run-help` will use `man`'s completion.
# you must add the following code to your `~/.zshrc` to enable and unalias it:
#
# ```zsh
# (($+aliases[run-help]))
&& unalias run-help
# autoload -Uz run-help
# autoload -Uz run-help && (($+aliases[run-help])) && unalias run-help
# ```
#
# true `run-help` can display the help of zsh built-in commands
# while `man` can display the help of external commands
run-help $word

0 comments on commit 2df0998

Please sign in to comment.