You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/env bash
|
|
|
|
# shellcheck disable=SC2230
|
|
|
|
# vim:ts=4:sts=4:sw=4:et
|
|
|
|
#
|
|
|
|
# Author: Hari Sekhon
|
|
|
|
# Date: circa 2019 (forked from .bashrc)
|
|
|
|
#
|
|
|
|
# https://github.com/harisekhon/bash-tools
|
|
|
|
#
|
|
|
|
# License: see accompanying Hari Sekhon LICENSE file
|
|
|
|
#
|
|
|
|
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
|
|
|
|
#
|
|
|
|
# https://www.linkedin.com/in/harisekhon
|
|
|
|
#
|
|
|
|
|
|
|
|
# ============================================================================ #
|
|
|
|
# N o d e
|
|
|
|
# ============================================================================ #
|
|
|
|
|
|
|
|
bash_tools="${bash_tools:-$(dirname "${BASH_SOURCE[0]}")/..}"
|
|
|
|
|
|
|
|
# shellcheck disable=SC1090
|
|
|
|
#. "$bash_tools/.bash.d/os_detection.sh"
|
|
|
|
|
|
|
|
if ! type add_PATHS &>/dev/null ; then
|
|
|
|
. "$bash_tools/.bash.d/paths.sh"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# output from 'npm bin'
|
|
|
|
if [ -d ~/node_modules/.bin ]; then
|
|
|
|
add_PATH ~/node_modules/.bin
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d "$bash_tools/node_modules/.bin" ]; then
|
|
|
|
add_PATH "$bash_tools/node_modules/.bin"
|
|
|
|
fi
|
|
|
|
|
|
|
|
alias lsnodebin='ls -d ~/node_modules/.bin/* 2>/dev/null'
|
|
|
|
alias llnodebin='ls -ld ~/node_modules/.bin/* 2>/dev/null'
|