mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 04:20:23 +00:00
Create ~/Work with ./bin in the path for contained projects (#1654)
* Create ~/Work with ./bin in the path for contained projects * Split out the mise work setup as its own configurator * Fixup the migration to reuse config logic --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
@@ -10,5 +10,5 @@ if [[ ! -v BASH_COMPLETION_VERSINFO && -f /usr/share/bash-completion/bash_comple
|
||||
fi
|
||||
|
||||
# Set complete path
|
||||
export PATH="./bin:$HOME/.local/bin:$PATH"
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
set +h
|
||||
|
||||
@@ -10,6 +10,7 @@ run_logged $OMARCHY_INSTALL/config/ssh-flakiness.sh
|
||||
run_logged $OMARCHY_INSTALL/config/detect-keyboard-layout.sh
|
||||
run_logged $OMARCHY_INSTALL/config/xcompose.sh
|
||||
run_logged $OMARCHY_INSTALL/config/mise-ruby.sh
|
||||
run_logged $OMARCHY_INSTALL/config/mise-work.sh
|
||||
run_logged $OMARCHY_INSTALL/config/docker.sh
|
||||
run_logged $OMARCHY_INSTALL/config/mimetypes.sh
|
||||
run_logged $OMARCHY_INSTALL/config/localdb.sh
|
||||
|
||||
9
install/config/mise-work.sh
Normal file
9
install/config/mise-work.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
# Add ./bin to path for all items in ~/Work
|
||||
mkdir -p "$HOME/Work"
|
||||
|
||||
cat >"$HOME/Work/.mise.toml" <<'EOF'
|
||||
[env]
|
||||
_.path = "{{ cwd }}/bin"
|
||||
EOF
|
||||
|
||||
mise trust ~/Work/.mise.toml
|
||||
9
migrations/1757783204.sh
Normal file
9
migrations/1757783204.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
echo "Create ~/Work with ./bin in the path for contained projects"
|
||||
|
||||
mise_config="$HOME/Work/.mise.toml"
|
||||
|
||||
if [[ -f $mise_config ]]; then
|
||||
cp $mise_config "$mise_config.bak.$(date +%s)"
|
||||
fi
|
||||
|
||||
source "$OMARCHY_PATH/install/config/mise-work.sh"
|
||||
Reference in New Issue
Block a user