Skip to content

Commit

Permalink
feat(mysql): prefer mysqlshow from same dir
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed May 23, 2023
1 parent a4294f3 commit 643886c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions completions/mysql
Expand Up @@ -18,6 +18,10 @@ _comp_cmd_mysql()
local cur prev words cword was_split comp_args
_comp_initialize -s -- "$@" || return

# Prefer `mysqlshow` in the same dir as the command
local pathcmd
pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH

local noargopts='!(-*|*[uDhSPeI]*)'
# shellcheck disable=SC2254
case $prev in
Expand Down

0 comments on commit 643886c

Please sign in to comment.