Commit Graph

13 Commits

Author SHA1 Message Date
Anis Elleuch afda8e00c6 Install in ~/.bash_profile first in case of macOS
Some macOS users have ~/.bashrc which is not loaded from
~/.bash_profile, which means, completion will never be
loaded when users open a terminal.

This commit will make macOS a special case and will always
tend to install in ~/.bas_profile
2019-05-29 01:16:22 +01:00
Eyal Posener 6db5f134c9 fix lint issues 2018-09-10 10:50:47 +03:00
Yuki Ito fbb0b60454 Add support for fish 2018-01-08 17:51:45 +09:00
Costas Tyfoxylos 3682ca65e0 Fixes the issue where if .profile is used and not any of the other files the -install-autocomplete fails with :
Error executing CLI: Did not find any shells to install

excerpt from bash man page

    When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.

    When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if these files exist. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of /etc/bash.bashrc and ~/.bashrc.
2017-12-19 11:05:40 +01:00
Thom Shutt a27e787f90 Fixed grammar 2017-09-08 13:40:26 +01:00
Josh Bleecher Snyder b74be9ff54 add .bash_profile as a bash rc file
This is common on macs.
2017-05-23 08:04:21 -07:00
Josh Bleecher Snyder e3c14b831e check whether rc file exists during installation 2017-05-23 08:03:54 -07:00
Josh Bleecher Snyder de4cdce279 correctly report installation failures
Prior to this, installations failed silently.
2017-05-23 07:43:32 -07:00
Eyal Posener 3776c7286e cmd/install: add support for zsh
Fixes: #9
2017-05-13 11:06:15 +03:00
Eyal Posener 5db452a63f Install fixups
- remove root installation
- install according to shell type

Closes #7
2017-05-08 07:32:13 +03:00
Eyal Posener c20bec01d6 Fix one more vet 2017-05-06 22:26:29 +03:00
Eyal Posener cc743aad8b Fix vet 2017-05-06 22:25:44 +03:00
Eyal Posener 703dd6ebc3 improve docs 2017-05-06 22:15:15 +03:00