updated aliases.sh

pull/2/head
Hari Sekhon 5 years ago
parent ad89e0686b
commit 91327de4d7

@ -235,16 +235,17 @@ pmd_opts="-R rulesets/java/quickstart.xml -f text"
if isMac; then if isMac; then
# yes evaluate $pmd_opts here # yes evaluate $pmd_opts here
# shellcheck disable=SC2139 # shellcheck disable=SC2139
alias pmd="pmd $pmd_opts" pmd="pmd $pmd_opts"
else else
for x in ~/pmd-bin-*; do for x in ~/pmd-bin-*; do
if [ -f "$x/bin/run.sh" ]; then if [ -f "$x/bin/run.sh" ]; then
# yes evaluate $x here # yes evaluate $x here
# shellcheck disable=SC2139 # shellcheck disable=SC2139
alias pmd="$x/bin/run.sh pmd $pmd_opts" pmd="$x/bin/run.sh pmd $pmd_opts"
fi fi
done done
fi fi
alias pmd='$pmd'
# for piping from grep # for piping from grep
alias uniqfiles="sed 's/:.*//;/^[[:space:]]*$/d' | sort -u" alias uniqfiles="sed 's/:.*//;/^[[:space:]]*$/d' | sort -u"

Loading…
Cancel
Save