Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix: Use .bash_profile for bash shell config on all platforms
Maximilian Roos16d3c664a2ae
diff --git a/src/cli.rs b/src/cli.rsindex e09f63f80..31688f90e 100644--- a/src/cli.rs+++ b/src/cli.rs@@ -163,7 +163,7 @@ pub enum ConfigShellCommand {Add one line to your shell config:-Bash (~/.bashrc):+Bash (~/.bash_profile):eval "$(wt config shell init bash)"Fish (~/.config/fish/config.fish):diff --git a/src/shell.rs b/src/shell.rsindex be778a05a..c5d1ac6cf 100644--- a/src/shell.rs+++ b/src/shell.rs@@ -44,12 +44,8 @@ impl Shell {match self {Self::Bash => {- // macOS uses .bash_profile, Linux typically uses .bashrc- if cfg!(target_os = "macos") {- vec![home.join(".bash_profile"), home.join(".profile")]- } else {- vec![home.join(".bashrc"), home.join(".bash_profile")]- }+ // Use .bash_profile - canonical location for login shell initialization+ vec![home.join(".bash_profile")]}Self::Zsh => {let zdotdir = std::env::var("ZDOTDIR")diff --git a/tests/integration_tests/configure_shell.rs b/tests/integration_tests/configure_shell.rsindex f2eccc9f5..6958ead18 100644--- a/tests/integration_tests/configure_shell.rs+++ b/tests/integration_tests/configure_shell.rs@@ -182,13 +182,7 @@ fn test_configure_shell_no_files() {let repo = TestRepo::new();let temp_home = TempDir::new().unwrap();- let mut settings = setup_home_snapshot_settings(&temp_home);- // Normalize bash config file names across platforms- // Linux: ".bashrc, .bash_profile" → remove ".bashrc, "- // macOS: ".bash_profile, .profile" → remove ", .profile"- settings.add_filter(r"\[TEMP_HOME\]/\.bashrc, ", "");- settings.add_filter(r", \[TEMP_HOME\]/\.profile", "");-+ let settings = setup_home_snapshot_settings(&temp_home);settings.bind(|| {let mut cmd = wt_command();repo.clean_cli_env(&mut cmd);