1
0
Fork 0

refactor to ${commands[exec]:h} as mentioned in PR

pull/483/head
Wil Moore III 11 years ago
parent afb097ccfa
commit 77b7fbf239

@ -189,7 +189,7 @@ function psu {
function cdx {
local exe="$1"
local fqe="$(command -v $exe 2>/dev/null)"
local dir="$(dirname $fqe 2>/dev/null)"
local dir="${commands[$exe]:h}"
if [[ ! -x "$fqe" ]]; then
echo "cdx: '$exe' not found."

Loading…
Cancel
Save