Skip to content

Commit

Permalink
Switch to new husky config file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Jan 29, 2024
1 parent 5fce6c5 commit dec5a5c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions configs/husky/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Runs before husky hooks, in non-interative shell environments like Sourcetree
# https://typicode.github.io/husky/how-to.html#node-version-managers-and-guis

# Add mise shims to PATH
export PATH="$HOME/.local/share/mise/shims:$PATH"
2 changes: 1 addition & 1 deletion dotfiles/.huskyrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Runs before husky hooks, in non-interative shell environments like Sourcetree
# https://typicode.github.io/husky/troubleshooting.html#command-not-found
# TODO: Remove this file when all your projects are using husky v9

# Add mise shims to PATH
export PATH="$HOME/.local/share/mise/shims:$PATH"
2 changes: 2 additions & 0 deletions scripts/shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ for file in "$REPO_PATH"/dotfiles/.*; do
done

# Symlink mise and Starship configs
mkdir -p "$HOME/.config/husky"
ln -sf "$REPO_PATH/configs/husky/init.sh" "$HOME/.config/husky/init.sh"
mkdir -p "$HOME/.config/mise"
ln -sf "$REPO_PATH/configs/mise/config.toml" "$HOME/.config/mise/config.toml"
ln -sf "$REPO_PATH/configs/mise/settings.toml" "$HOME/.config/mise/settings.toml"
Expand Down

0 comments on commit dec5a5c

Please sign in to comment.