Skip to content

Commit

Permalink
🐛 Don't define finger() when finger exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jan 12, 2024
1 parent 2eac596 commit 2ddcb85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions functions/main.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
(($+commands[less])) && [ -x ~/.lessfilter ] &&
less() {~/.lessfilter $@ || command less $@} || (($+commands[less])) ||
less() {command ls -l $@}
(($+commands[finger])) || (($+commands[pinky])) &&
finger() {command pinky $@} || finger() {command whoami}
if ((! $+commands[finger])); then
(($+commands[pinky])) && finger() {command pinky $@} || finger() {command whoami}
fi
(($+commands[pandoc])) || pandoc() {command cat ${@[-1]}}
(($+commands[grc])) || grc() {eval ${@[2,-1]}}

Expand Down

0 comments on commit 2ddcb85

Please sign in to comment.