Update command checks to use a faster method
This commit is contained in:
parent
6ce632755c
commit
83b6e927c6
7 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# Setup Fast Node Manager
|
||||
if type fnm > /dev/null; then
|
||||
if (( ${+commands[fnm]} )); then
|
||||
eval "$(fnm env --use-on-cd)"
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# Setup fzf completions
|
||||
if type fzf > /dev/null; then
|
||||
if (( ${+commands[fzf]} )); then
|
||||
eval "$(fzf --zsh)"
|
||||
fi
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Setup GitHub Copilot
|
||||
# first check we even have the genereic `gh` command
|
||||
if type gh > /dev/null; then
|
||||
if (( ${+commands[gh]} )); then
|
||||
# Now check we have the copilot plugin installed with `gh`
|
||||
if gh extension list | rg copilot -c > /dev/null; then
|
||||
eval "$(gh copilot alias -- zsh)"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# McFly
|
||||
if type mcfly > /dev/null; then
|
||||
if (( ${+commands[mcfly]} )); then
|
||||
eval "$(mcfly init zsh)"
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# ngrok completions
|
||||
if command -v ngrok &>/dev/null; then
|
||||
if (( ${+commands[ngrok]} )); then
|
||||
eval "$(ngrok completion)"
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# Init the fuck
|
||||
if type thefuck > /dev/null; then
|
||||
if (( ${+commands[thefuck]} )); then
|
||||
eval "$(thefuck --alias)"
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# zoxide - a better `cd` command
|
||||
if command -v zoxide &>/dev/null; then
|
||||
if (( ${+commands[zoxide]} )); then
|
||||
eval "$(zoxide init zsh)"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue