summaryrefslogtreecommitdiff
path: root/lib/completion.zsh
AgeCommit message (Collapse)Author
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
2009-10-26Fixing merge conflicts 886d97f41e72b8662232a2c6b196fb60508e4f67Robby Russell
2009-10-12Added some commentTo1ne
2009-10-07should probably use the value of CASE_INSENSITIVEMatthew Donoughe
2009-10-07allow case sensitivity to be toggledMatthew Donoughe
2009-09-23merge upstreamJames Cox
2009-09-23Moving all zsh config options into a lib/ subdirectory to make way for some ↵Robby Russell
upcoming changes to directory structure and configuration options