summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2019-04-22Colored ls output in FreeBSD #7565Yannis Mitsos
2019-04-09lib: stop detecting git versions prior to 1.7.2Marc Cornellà
The 1.7.2 release was published in July 2010 [1]. It's about time to stop supporting older versions. Fixes #4583 [1] https://github.com/git/git/releases/tag/v1.7.2
2019-04-09lib: fix issues with nounset and parameters used before defined (#7433)David Remy
2019-04-08lib: delete PS1 defaultMarc Cornellà
A default PS1 doesn't make sense: the user will either choose a theme or not care about a default prompt since they can set it themselves. Fixes #7054
2019-03-21termsupport: add support for tmux* $TERM values (#7622)Jeremy Armstrong
2019-03-21compfix: fix check for empty string (#7674)Konstantin Gizdov
2019-02-25lib: optimize default and env_defaultMarc Cornellà
2019-01-20misc: remove please alias to sudoMarc Cornellà
Fixes #7527
2018-09-15lib: fix history wrapper when passing numbersMarc Cornellà
If a number is passed without explicitly passing `-l`, it will now behave as if using the history builtin, instead of throwing an error.
2018-09-09lib: quote arguments to env_defaultMarc Cornellà
Fixes #7117
2018-09-08lib: small change to git_compare_versionMarc Cornellà
Fixes #7118
2018-08-19Add jenv pluginJohn Burwell
Initializes jenv and provides the jenv_prompt_info funtion to add Java version information to prompts. This function is stubbed in prompt_info_functions script to allow it to be safely called regardless of whether or not the jenv plugin is loaded. It also splits detection of the plugin/versions directory and bin directory to suppport the way Homebrew splits the jenv bin and data directories
2018-08-09core: fix alias_value functionMarc Cornellà
Fixes #5835
2018-08-07use https everywhere (#6574)Janosch Schwalm
* use https everywhere * use https links on the files that are left Also, removed some broken links and updated redirections.
2018-08-02Revert "add -F and -X to default $LESS environment variable (#6611)"Marc Cornellà
This reverts commit 9544316ef95c2aa1e75101a7dce545b4604b3ca6. This setting broke mouse / touchpad scroll on programs using `less` output due to it not using the alternate screen buffer. Fixes #7025
2018-07-24add -F and -X to default $LESS environment variable (#6611)Lars Schneider
The option '-F' causes 'less' to automatically quit if the contents fit the screen and the option '-X' causes 'less' to not clear the screen after quit. I think both options are generally useful for terminal applications. They are in particular useful for Git as it runs all output through a pager. Git will run 'less' with '-FRX' by default if the environment variable $LESS is not defined [1]. Since oh-my-zsh used to set $LESS to '-R', Git would not override this setting. Consequently, Git would display even a single line of output in a pager and the user would need to explicitly quit that pager (see mailing list discussion [2]). Therefore, lets change the oh-my-zsh default value for $LESS to '-FRX'. This would be useful for oh-my-zsh Git users and likely for users of other applications that use 'less' too. [1] https://github.com/git/git/blob/36438dc19dd2a305dddebd44bf7a65f1a220075b/Documentation/config.txt#L819-L821 [2] https://public-inbox.org/git/2412A603-4382-4AF5-97D0-D16D5FAAFE28@eluvio.com/
2018-07-13Add support for custom timestamp format in history (#6770)Cristian Consonni
2018-07-02Enable passing multiple directories to take (#6900)sam-lunt
* enable passing multiple directories to take * Update take function Do not call cd if mkdir fails
2018-07-01Don't correct cp commands (#4636)Yuri Parsons
2018-06-30open_command: fix and improve command for WSLMarc Cornellà
- Add double quotes to command so that the next argument isn't interpreted as the title for the start command. - If the first argument is a valid path, convert it to Windows path notation. If `wslpath` fails—because it's a path from inside WSL, which cannot be converted to Windows path notation— fail with an error code. This last circumstance will show an error like so: wslpath: path: Result not representable
2018-06-30open_command: simplify codeMarc Cornellà
2018-05-26Give more helpful message and disable purge of cachesMarc Cornellà
This error message will give information on what exactly has happened and how to either solve ownership and permissions or disable the check entirely. Also gets rid of the purge of compinit caches since with the current logic insecure completion directories are ignored and therefore haven't tainted the cached files.
2018-05-25Remove po aliasNathan Robinson
https://github.com/robbyrussell/oh-my-zsh/issues/6761
2018-05-07Allow completion of dot directories (#6803)Marc Cornellà
Fixes #3775, fixes #6543
2018-04-24Check for Microsoft's WSL in open_command (#6751)Marc Cornellà
This will work only on files and directories in a DrvFs mount, i.e. that can be translated to a Windows drive path. For example: /mnt/c/Users/user. Files and folders inside the LXSS directory can't be handled in Windows, they must be ONLY used by the WSL subsystem. That's why you won't be able to open your $HOME directory, for instance. See https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/
2018-04-22Increment HISTSIZE to fix hist_expire_dups_firstMarc Cornellà
This fixes the old behavior which made it so all duplicates would be deleted if the command history filled up with unique events. > You should be sure to set the value of HISTSIZE to a larger number > than SAVEHIST in order to give you some room for the duplicated > events, otherwise this option will behave just like HIST_IGNORE_ALL_DUPS > once the history fills up with unique events.
2018-04-22Remove duplicate option append_historyMarc Cornellà
The option inc_append_history already has the same effect.
2018-04-22Use zparseopts to get passed argumentsMarc Cornellà
2018-04-22Allow overriding -l flag in historyMarc Cornellà
2018-04-22Ensure builtin fc is used (see #3001)Marc Cornellà
2018-04-22Organize history.zsh file and improve commentsMarc Cornellà
2018-04-22Simplify `if' into oneliner, allow spaces in HISTFILEMarc Cornellà
2018-04-22Change history alias into a functionMarc Cornellà
This commit changes the history alias into a function which puts the passed arguments before `-l 1`. It also provides a temporary workaround to the lack of a `history -c` command in zsh. For more information see issues 739 and 789.
2018-04-15Fix git_commits_{ahead,before} when no upstream branch is defined (#6658)Jacopo De Simoi
If @{u} is not defined, git rev-list will give an error; redirect to stderr the error and deal with this case in what follows.
2018-01-22Add match for `MM` (result of `git commit -p` on a single changed file) to ↵Kimberly Zick
git_prompt_status (#3632)
2017-11-14With zsh 5.4 a simple "local FLAGS" meant as an array must be explicitly ↵catull
declared so. This fix avoids the dreaded "parse_git_dirty:3: FLAGS: attempt to assign array value to non-array". (#6414)
2016-12-30 'lib/functions.zsh: Solve typos'Patrick José Pereira
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2016-12-30 'lib/completion.zsh: Solve typos'Patrick José Pereira
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2016-11-16fix(env): Do not override misc env set before sourcing oh-my-zsh (#5231)Derek Frank
Sourcing oh-my-zsh happens in zshrc, which will override settings of profile and zshenv. Treat misc values, `PAGER` and `LESS`, as default settings without overriding existing values. Fixes: #1, robbyrussell/oh-my-zsh#3016
2016-11-03Fix #5604: No DIR ( directory ) colors (#5605)mingang.he
2016-11-02Fix invalid "ls -G" alias.Eduardo Cuomo
2016-11-02Check dircolors settings before using gls on darwin (#5570)Marc Cornellà
`gls` seems to be installed by default or on most macOS systems, but its default color scheme sucks. This fix will make sure to only use it if it has been customised prior to running OMZ. Related: #5516, #5520.
2016-10-11Fix ls coloring in MacOS if gls is not installedMarc Cornellà
Fixes #5520.
2016-10-10Fix ls colouring for Darwin. (#5516)rossmcf
2016-10-10Use $+commands to check the existence of a command in clipboard.zsh. (#5519)Hong
2016-10-10Use OSTYPE instead of uname whenever possible for better speed. (#5496)Hong
2016-10-10Take advantage of LS_COLORS for the color of completion if GNU ls is used. ↵Hong
(#5510)
2016-10-04Fix style of theme-and-appearance.zshMarc Cornellà
2016-10-04Only set default LS_COLORS if not set beforeMarc Cornellà
Also, force the use of Bourne-style shell syntax with `dircolors -b`.
2016-10-04Use `$commands[]` to check for command existenceMarc Cornellà