fix: profile nvm dir, format, docs bump

This commit is contained in:
2025-06-09 22:42:26 +01:00
parent c0ed27079c
commit ee94155df9
2 changed files with 7 additions and 11 deletions

View File

@@ -8,17 +8,13 @@ to set up my development environment
## Usage
A local repository can be installed by running:
A local repository can be installed and updated by running:
./script/install
Once installed, updates can be applied by running:
dots
./install
A specific script can be installed by running:
dots script1 script2 ...
./install script1 script2 ...
### Automated setup

View File

@@ -24,7 +24,7 @@ export DOTFILES=${DOTFILES:-"$HOME/.dotfiles"}
# Initialise and load Node
# -----------------------------------------------------------------
if [ -z "$NVM_DIR" ]; then
export NVM_DIR=${NVM_DIR:-"$HOME/.nvm"}
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
mkdir -p "$NVM_DIR"
fi
@@ -36,7 +36,7 @@ _dots_load_nvm
node_alias="$NVM_DIR/alias/lts/jod"
if [ -f "$node_alias" ]; then
VERSION=`cat "$node_alias"`
VERSION=$(cat "$node_alias")
node_bin_path="$NVM_DIR/versions/node/$VERSION/bin"
if [[ ":$PATH:" != *":$node_bin_path:"* ]]; then
export PATH="$node_bin_path:$PATH"
@@ -51,7 +51,7 @@ if [[ ":$PATH:" != *":$PYENV_ROOT/bin:"* ]]; then
export PATH="$PYENV_ROOT/bin:$PATH"
fi
_dots_load_pyenv() {
[ -x `command -v pyenv` ] && eval "$(pyenv init --path)"
[ -x $(command -v pyenv) ] && eval "$(pyenv init --path)"
}
_dots_load_pyenv
@@ -63,7 +63,7 @@ fi
# aliases
# -----------------------------------------------------------------
if [ -f ~/.aliases ]; then
source ~/.aliases
source ~/.aliases
fi
# Load homebrew