summaryrefslogtreecommitdiff
path: root/lib/completion.zsh
AgeCommit message (Collapse)Author
2021-03-25fix: use `$USERNAME` guaranteed to always be defined in zshMarc Cornellà
Fixes #9701
2020-10-21Revert "lib: treat _ and - as part of a word"Marc Cornellà
This reverts commit 50dc4ab3574f4e265dff816d8d9a0195cd260152. The community has spoken: - https://github.com/ohmyzsh/ohmyzsh/issues/9367 - https://github.com/ohmyzsh/ohmyzsh/issues/8743 Fixes #9367
2020-09-04lib: treat _ and - as part of a wordMarc Cornellà
Fixes #8743
2020-08-04lib: bind to all keymaps when COMPLETION_WAITING_DOTS is setMarc Cornellà
Fixes #9050
2020-08-02lib: substitute COMPLETION_WAITING_DOTS for ellipsisMarc Cornellà
Closes #8342
2020-05-11core: fix zstyle definition of use-cacheMarc Cornellà
2020-04-05lib: speed up slow parts of the lib files; other small fixesMarc Cornellà
2020-02-11lib: load bash completion functions automaticallyMarc Cornellà
Fixes #8614
2018-05-07Allow completion of dot directories (#6803)Marc Cornellà
Fixes #3775, fixes #6543
2016-12-30 'lib/completion.zsh: Solve typos'Patrick José Pereira
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2016-09-22Fix styling of lib/completion.zshMarc Cornellà
2016-09-22Fix hyphen and underscore filename completionGravemind
This deletes the previous hack that allowed completing files with the extension: e.g. `abcd.z` to `abcdefg.z`. It is still possible to use `abcd[TAB].z`, and hyphens or underscores are very much more important than this other trick. Source: https://github.com/robbyrussell/oh-my-zsh/issues/1398#issuecomment-169163149 Signed-off-by: Marc Cornellà <marc.cornella@live.com>
2015-09-05Switch off line wrapping in case dots occupy extra lineMarc Cornellà
This commit uses the (hopefully) standard rmam and smam escape sequences which toggle off and on line wrapping respectively. This is so that extra dots that don't fit the current line won't be displayed in the next line, which would in turn make the shell display a new prompt on the next line after the dots are hidden. I've added a check for $terminfo rmam and smam values to be sure we have them before printing them out. If this commit breaks something post an issue with your terminal emulator and $TERM value and we'll figure out what went wrong.
2015-09-05Use prompt expansion sequence to color red the outputMarc Cornellà
This makes it clearer and possibly more portable for different platforms.
2015-09-05Use proper if comparisonMarc Cornellà
2015-04-29Add hyphen insensitivityJordan Klassen
2015-02-16Do not put explicit dot in $cdpath, since it causes problems on Cygwin due ↵Andrew Janke
to an underlying zsh bug.
2015-01-08Allow custom cache dirStephen
We are running oh-my-zsh on a shared install and the only issue is each user having a custom cache dir. This will allow us to set the cache dir to ZSH_CACHE_DIR=~/oh-my-zsh/cache/ .
2014-11-06Change all whoami calls for $USER variableMarc Cornellà
This avoid spawning additional processes, as the $USER variable will **always** contain the current logged-in user.
2014-09-16Update Solaris changes to use OSTYPE and zsh datetime module.Moinak Ghosh
2014-07-11Solaris portability tweaks.Moinak Ghosh
2014-06-10ignore usernames beginning with underscoreWill Boyce
2014-03-16Ignore more users in ssh completion.Mariusz Fik
Signed-off-by: Mariusz Fik <fisiu@opensuse.org>
2014-03-13Use zsh's default for ':completion:*:hosts'Daniel Hahler
The manual configuration of ':completion:*:hosts' causes some problems (e.g. issue #1337), and misses useful information (especially from ~/.ssh/known_hosts; issue #690 and issue #1009). The best option appears to be using zsh's default configuration for ':completion:*:hosts'. While rebasing this for a new pull request (#1498 got closed by accident and then requests to re-open it got ignored), it also drops the `users off` setting: completion of user names can be useful, and the commit adding it (c4434d2) does not state why.
2013-02-08Merge remote-tracking branch 'upstream/master'Sébastien M-B
Conflicts: lib/aliases.zsh
2012-08-01Correct variable used for global ssh known host completionAlexis Letessier
2012-06-25Merge remote-tracking branch 'upstream/master'Sébastien
2012-06-12Change hardcoded ~/.oh-my-zsh to $ZSH.s3
2012-04-12Merge remote branch 'upstream/master'Sébastien M-B
Conflicts: lib/completion.zsh
2011-12-30Get the HostnameGustavo Barron
Main library should use ZSH native hostname function
2011-12-22Added support for entries in /etc/ssh/ssh_known_hosts.Kyle Smith
2011-11-05Update completion for SSHSébastien M-B
Add all hosts found in ~/.ssh/config. Tip found on: http://www.nerux.org/wiki/OpenSSH#coupler_avec_zsh_completion
2011-08-30Revert "Enable red dots during completion by default".Robby Russell
After a few weeks of using this, I'd prefer this to not be enabled by default. My bad for suggesting that in the first place. This reverts commit fc49b4a4ded376cd82b813dcb6d72fdc050b7bed.
2011-07-28Enable red dots during completion by defaultLoïc Yhuel
2011-07-24Display red dots during completion process (disabled by default)Loïc Yhuel
2011-04-20Merge remote branch 'upstream/master'Pat Regan
Conflicts: plugins/github/github.plugin.zsh
2011-04-12Moved compinit call back to oh-my-zsh.sh, after plugins are loadedPat Regan
2011-04-12Revert "Enable alias completion, do not limit completion to just files"Robby Russell
This reverts commit c3a58b00040018743ead1e6672910433fc1ca7c2.
2011-04-08Moved the single compinit call from oh-my-zsh.sh to lib/completion.zshPat Regan
2011-04-08Replace redundant calls to compinit with a single call.Pat Regan
2011-03-11Enable alias completion, do not limit completion to just filesWoody Gilk
2010-11-03Completion fixesgwjo
Use /etc/hosts in addtion to $HOME/.ssh/known_hosts as the source for hostname completion Turn on completion caching to speed up certain comands When completing usernames, don't include system accounts by default
2010-09-26Do not complete named-directoriesTomas Kramar
2010-06-03Removing legacy completion codeRobby Russell
2010-05-07Merge remote branch 'jreese/master'Robby Russell
2010-05-06Don't autoselect first completion entry (Fixes #14)kremso
The key here is not using MENU_COMPLETE which autoselects the first entry, but using AUTO_MENU which displays the menu but autoselects on successive tab hit. Also, do not use zstyle menu yes because that somehow overrides the setopts.
2010-04-08Ignore errors from compaudit when using `sudo -s`John Reese
2009-12-01RevertToon Claes
2009-11-30Completion from historyToon Claes
2009-11-08Only using the contents of .ssh/known_hosts when the file exists for ssh/scp ↵Robby Russell
auto-completion. Closes issue #20