Skip to content

Commit

Permalink
configure npmrc location ahead of time
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebman committed Jan 14, 2025
1 parent 1b549de commit 72e2e6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/available/jake-xdg.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export RANCHER_CONFIG_DIR="${XDG_CONFIG_HOME}/rancher"
# I had to rip this from their source code: https://github.com/GitGuardian/ggshield/blob/8b6464d31be1cef6fa3f4ceec1fe9894a8454c27/ggshield/core/dirs.py#L16
export GG_USER_HOME_DIR="${XDG_CONFIG_HOME}/ggshield"

# This file, if it's ever created, could also configure `cache=${npm_config_cache}` and remove the $npm_config_cache variable, below
NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc"

# TODO: it'd be nice to have this set BEFORE bash starts, but hey, that's what `bind -f` is for!
export INPUTRC="${XDG_CONFIG_HOME}/inputrc"
bind -f "$INPUTRC"
Expand Down

0 comments on commit 72e2e6e

Please sign in to comment.