Commit Graph
9 Commits
Author SHA1 Message Date
Jordan Harband 9abb216367 [Fix] install.sh: detect the profile from the login shell that ran the installer
`$SHELL` is the account's login shell,
so when a terminal runs a different shell,
like zsh from Terminal's settings without `chsh`,
the installer wrote to the other shell's profile.
Prefer the shell that ran the installer,
but only when it is a login shell,
since a script that runs the installer,
like a bash dotfiles bootstrap,
isn't the user's shell.

Fixes #592.
Closes #611, whose idea this is.
2026-11-22 12:24:35 -08:00
Peter Dave Hello 2cd2c0f72e Remove useless trailing newlines 2018-02-26 01:01:30 +08:00
Peter Dave Hello f7763c8ba9 [Tests] die() in tests should quote "$@" for echo 2016-11-07 03:34:36 +08:00
Qiangjun Ran cadbbced20 [Tests] Replace all dots with backslash dots 2016-11-03 23:44:59 -07:00
Jordan Harband ecba036cbf [Tests] show type output for debugging 2015-12-21 23:59:44 -08:00
Jordan Harband bb2fe618cb The install script only runs in bash. 2015-04-27 16:55:21 -07:00
Xavier Cambar b9f15b0ab0 Tests for PROFILE detection 2014-10-29 18:50:04 +01:00
Jordan Harband d30c0fe146 Cleaning up install_script tests. 2014-10-28 13:47:21 -07:00
Xavier Cambar 3cdec8e875 Testable install script
* wraps main code into a function
* EnvVar-based install start
* Clean environment after install
2014-10-28 11:44:01 +01:00