Eyal Posener
6bee943216
Merge pull request #55 from costastf/master
...
install/bash: add more configuration files
2017-12-19 13:11:28 +02: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
Eyal Posener
dc2bc5a81a
Merge pull request #54 from posener/split-last-equal
...
Add logic to complete when last flag uses the equal sign
2017-11-04 11:57:02 +02:00
Eyal Posener
a1f9ea005b
Merge branch 'master' into split-last-equal
2017-11-04 11:52:49 +02:00
Eyal Posener
00c86494ff
Merge pull request #53 from posener/finally-filter-matches
...
Filter matches as a final stage
2017-11-04 11:52:09 +02:00
Eyal Posener
aae7e1e39f
Add logic to complete when last flag uses the equal sign
...
If the last flag is of the form -flag=value, complete the value according to -flag.
2017-11-04 11:32:33 +02:00
Eyal Posener
c45e6fe851
travis: add go1.9, remove tip
2017-11-04 10:57:04 +02:00
Eyal Posener
7ee9623f2b
Filter matches as a final stage
...
This simplifies the prediction logic writing, the predictor
doesn't need to filter our according to line matching, instead
it returns everything and the filtering is done at the end.
This does not break current behavior.
2017-11-04 10:51:40 +02:00
Eyal Posener
88e59760ad
Merge pull request #52 from thomshutt/master
...
Fixed grammar
2017-09-08 15:52:45 +03:00
Thom Shutt
a27e787f90
Fixed grammar
2017-09-08 13:40:26 +01:00
Eyal Posener
9f41f7636a
Merge pull request #50 from sethvargo/sethvargo/nospace
...
Use nospace option for zsh
2017-08-29 20:11:12 +03:00
Seth Vargo
0c517573da
Use nospace option for zsh
2017-08-29 12:55:27 -04:00
Eyal Posener
2100d1b06c
Merge pull request #47 from dadgar/f-hide-flags
...
Allow restricting completion of flags
2017-08-25 09:44:15 +03:00
Eyal Posener
91e5b1f44a
lint: fix typo
2017-08-25 09:41:42 +03:00
Alex Dadgar
2b9ace50d6
Fix tests from rebase
2017-08-24 17:37:26 -07:00
Alex Dadgar
97340ccc21
Default to hiding flags that start with hyphen unless last arg has a hyphen
2017-08-24 17:35:36 -07:00
Alex Dadgar
59e6151c5b
Allow restricting completion of flags
...
This PR allows a command to specify that flags should only be completed
when a prefix is present. The motivation behind this is to have the
initial complation to prefer displaying argument completions and only
display flag completions when the user enters "hyphen <tab>".
2017-08-24 17:35:36 -07:00
Eyal Posener
5075f6d6e6
Merge pull request #48 from dadgar/b-shared-prefix
...
Fix a subcommand matching
2017-08-24 23:05:41 +03:00
Alex Dadgar
1c43d25e35
Avoid unnecessary if statement
2017-08-24 11:08:51 -07:00
Alex Dadgar
d3c10410d6
Fix a subcommand matching
...
This PR fixes an issue where a subcommand matches the current set of
commands being examined. Fixes issue
https://github.com/posener/complete/issues/46
2017-08-23 13:58:31 -07:00
Eyal Posener
f4461a52b6
Merge pull request #45 from Deleplace/default-gopath
...
Handle default gopath $HOME/go when env var $GOPATH is not set.
2017-07-30 22:30:24 +03:00
Deleplace
4bd1bbca4a
Handle default gopath $HOME/go when env var $GOPATH is not set.
2017-07-30 19:41:18 +02:00
Eyal Posener
c111db7af1
Merge pull request #44 from posener/package
...
gocomplete: Add support for system GOPATH packages
2017-07-28 15:20:25 +03:00
Eyal Posener
a67bb12457
gocomplete: Add support for system GOPATH packages
...
fixes #41
2017-07-28 15:01:07 +03:00
Eyal Posener
e8d6fef54b
Merge pull request #40 from posener/tool
...
gocomplete: add go tool subcommands
2017-05-27 20:24:47 +03:00
Eyal Posener
97eda09fcb
gocomplete: add go tool subcommands
...
Fixes #39
2017-05-27 20:21:50 +03:00
Eyal Posener
8a418a6ab0
Merge pull request #38 from josharian/fix-installer
...
Fix installer
2017-05-23 19:33:44 +03: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
3e6cff0740
Merge pull request #37 from posener/fixes
...
Fixes
2017-05-23 07:45:28 +03:00
Eyal Posener
17b9aed67c
readme: fix example
2017-05-23 07:39:54 +03:00
Eyal Posener
3636c19b38
Fix example/self
...
Fixes #34
2017-05-23 07:33:38 +03:00
Eyal Posener
1a4c871bd8
Fix installation
...
Fixes #36
2017-05-23 07:33:14 +03:00
Eyal Posener
bae3fd94da
Merge pull request #35 from lucapette/patch-1
...
Fix typo
2017-05-22 17:32:01 +03:00
lucapette
8bb4de3518
Fix typo
2017-05-22 16:15:58 +02:00
Eyal Posener
55ecf96557
Merge pull request #33 from posener/license
...
change license to MIT
2017-05-20 23:26:05 +03:00
Eyal Posener
20a143602e
change license to MIT
2017-05-20 23:22:26 +03:00
Eyal Posener
eade2bb233
Merge pull request #32 from posener/flags
...
Flags
2017-05-20 22:53:01 +03:00
Eyal Posener
14dcbd6b21
cmd: remove adding of flags from run
2017-05-20 22:29:12 +03:00
Eyal Posener
5ba73666ab
cmd: fix complete flags name
2017-05-20 22:15:37 +03:00
Eyal Posener
bc002bd8a7
Merge pull request #31 from posener/improves
...
predict files: remove loop
2017-05-20 09:19:13 +03:00
Eyal Posener
6fc235c5dc
predict files: remove loop
2017-05-20 08:13:13 +03:00
Eyal Posener
7636231d03
Merge pull request #30 from posener/improves
...
gocomplete: improve package completion
2017-05-19 12:05:47 +03:00
Eyal Posener
238b78ffd9
gocomplete: improve package completion
2017-05-19 11:59:51 +03:00
Eyal Posener
abde60c79d
Merge pull request #29 from posener/metalinter
...
Metalinter
2017-05-19 00:38:56 +03:00
Eyal Posener
1dc99e31db
readme: go get -u
2017-05-19 00:33:53 +03:00
Eyal Posener
606af1720e
travis: add gometalinter tests
2017-05-19 00:33:49 +03:00
Eyal Posener
a3e3c5274c
Merge pull request #28 from posener/gocomplete-improve
...
Gocomplete improve
2017-05-19 00:20:03 +03:00
Eyal Posener
3555a6948a
gocomplete: better pakcages listing
...
use go/build package
only read one level of packages, and not all packages
2017-05-19 00:15:33 +03:00