Marc Cornellà
274df9dc29
lib: support simple terminal in title function
...
Fixes #9295
6 years ago
Marc Cornellà
4ec055b890
lib: support alacritty $TERM in title function
6 years ago
Marc Cornellà
765966606d
lib: correct :q syntax in title function for clarity
6 years ago
Marc Cornellà
caff704f41
lib: clean up zsh_stats function
6 years ago
Marc Cornellà
50dc4ab357
lib: treat _ and - as part of a word
...
Fixes #8743
6 years ago
Marc Cornellà
89400f156a
Remove zsh session restart on omz update and upgrade_oh_my_zsh
6 years ago
Marc Cornellà
7deda85f8c
Fix upgrade_oh_my_zsh function deprecation
6 years ago
Marc Cornellà
079e7bb5e0
lib: remove CTRL-Backspace key binding altogether
...
It conflicts with normal Backspace behavior. Fixes #9155
6 years ago
Marc Cornellà
39c0073225
lib: remove CTRL-Backspace binding for vi keymaps
6 years ago
Dario Vladović
3935ccce64
cli: add update command ( #9094 )
...
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
6 years ago
Marc Cornellà
cf347ef3e4
lib: bind to all keymaps when COMPLETION_WAITING_DOTS is set
...
Fixes #9050
6 years ago
Marc Cornellà
e04564d528
lib: add CTRL-backspace and CTRL-delete to delete whole words
...
Fixes #7609
Closes #8191
Co-authored-by: Michal Grňo <m93a.cz@gmail.com>
6 years ago
Marc Cornellà
ec70c0c393
lib: bind keys to viins and vicmd keymaps and clean up file
...
Fixes #8468
6 years ago
Marc Cornellà
f6bc949c05
lib: substitute COMPLETION_WAITING_DOTS for ellipsis
...
Closes #8342
6 years ago
Marc Cornellà
9521837240
lib: support mlterm-256color
...
Co-authored-by: Peter J. Schroeder <peterjschroeder@gmail.com>
6 years ago
Robert Estelle
1c58a746af
lib: safety fix and speed-ups for git.zsh prompt functions ( #7804 )
6 years ago
Marc Cornellà
d0d01c0bbf
lib: prefix diff call with command to bypass diff aliases
...
See https://github.com/ohmyzsh/ohmyzsh/pull/8807#issuecomment-652697704
6 years ago
Marc Cornellà
a15f0f0e9f
cli: beauty touches on 'omz pr test' command
6 years ago
Monson Shao
62648d71bb
lib: enable diff color ( #8807 )
6 years ago
Patrick Moore
e606ac7051
Handle unset variables in various parts of the codebase ( #8944 )
...
DISABLE_UNTRACKED_FILES_DIRTY, DISABLE_AUTO_TITLE, GIT_STATUS_IGNORE_SUBMODULES are not set
Handle these variables not being set with conditional access.
If the user has set -u option to report attempts to use undeclared / unassigned variable, accessing the variables needs to be conditional.
6 years ago
joshuashaffer
b706a91917
core: add title support for mlterm ( #8303 )
6 years ago
Marco Trevisan
ed4e317bbb
lib: don't override bigger HISTSIZE and SAVEHIST values ( #8993 )
...
oh-my-zsh Changes the HISTSIZE and SAVEHIST values to fixed sizes,
however if a bigger value is set in ~/.zshrc, it will override it,
potentially causing the user history to be deleted.
So, only set these values if no other is set and if it is lower than the
default ones.
6 years ago
Benoit GALATI
fcd0747bc1
core: remove inc_append_history option ( #8048 )
6 years ago
Marc Cornellà
cfdd3c8dd8
Revert "core: enable hist_reduce_blanks"
...
This reverts commit cbd6fbe7a7 .
Fixes #8949
6 years ago
Jacob Menke
582c8cb291
Prefix cd calls with `builtin` ( #8937 )
6 years ago
Marc Cornellà
cbd6fbe7a7
core: enable hist_reduce_blanks
...
Fixes #8722
6 years ago
Marc Cornellà
da8c19a076
core: fix zstyle definition of use-cache
6 years ago
Marc Cornellà
173d4ca68f
core: move core folder to lib, for now
6 years ago
Marc Cornellà
0caae9082a
lib: speed up slow parts of the lib files; other small fixes
6 years ago
Marc Cornellà
2eb3e9d57c
lib: support konsole* $TERM in title function ( #8035 )
6 years ago
Marc Cornellà
02d1253809
lib: clean up termsupport.zsh
6 years ago
Marc Cornellà
d7825313cc
Use $jobstates and $jobtexts to look for jobs
...
`jobs %string` doesn't work correctly when run inside `$()`. `$jobstates` and
`$jobtexts` is available in the current shell process, so even though we need
to replicate a bit more logic, every type of `fg` invocation works correctly.
6 years ago
Marek Dědič
bbe54e4e60
lib: use `command` to run rm in upgrade function ( #8696 )
6 years ago
Marc Cornellà
d3dfc13716
lib: use grep-alias cache only if ZSH_CACHE_DIR is writable
...
Fixes #8693
6 years ago
Marc Cornellà
dc190d872a
Refactor grep.zsh file
...
- Move grep-alias path to variable.
- Use <<< "" instead of piped echo to check grep flags.
- Remove check for --color only since it's the same release as --exclude.
6 years ago
Marc Cornellà
8d814fdff6
Fast algorithm to determine grep alias flags
...
This version tries whether grep supports all the flags together
and progressively checks older flags if the grep test fails.
This means only one grep call if all flags are supported, and
one additional call for every flag that's not supported, up to
a maximum of 3 calls.
6 years ago
mattmc3
57b178102c
Performance enhancement for lib/grep
...
- Use $ZSH_CACHE_DIR to store the grep alias with all the right features
- Expire the cache after 24 hours
- See issue #8444
6 years ago
Shi Yan
a8ed1c4e7a
Ignore .tox folder in grep
6 years ago
Peter Vandenberk
b4b50f20ac
Also set options for egrep and fgrep
6 years ago
Vital Kolas
b6f2cfdb93
Exclude .idea folder from grep search scope
6 years ago
Stephen Heuer
a2cad16790
lib: urlencode hostname in update_terminalapp_cwd ( #6245 )
...
Apple's Terminal doesn't open a new tab in your current directory if your hostname has UTF-8 characters in it. Percent encoding the host in addition to the path in update_terminalapp_cwd appears to solve this issue.
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
6 years ago
Marc Cornellà
888ab9091c
lib: add support for clippaste in WSL using powershell
...
Source: https://github.com/microsoft/WSL/issues/4852#issuecomment-579616808
6 years ago
j
2b499e1a9e
lib: add termux commands to clipboard.zsh ( #6243 )
...
Closes #6243
6 years ago
Marc Cornellà
57739cbcb6
lib: add support for clip.exe clipboard copy in WSL
6 years ago
Marc Cornellà
40b013f5f1
lib: delete upgrade lock in upgrade_oh_my_zsh
...
Provides a different solution to #8332 and #8333
6 years ago
Marc Cornellà
17428f3c9a
lib: load bash completion functions automatically
...
Fixes #8614
6 years ago
Evan Chiu
1c300d3a76
lib: add git function to determine repository name ( #4989 )
...
Closes #4989
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
6 years ago
Andras Svraka
56297902e9
lib: add MSYS2 support to clipboard integration ( #8542 )
6 years ago
Jacob Tomaw
1ba0af650a
Use safer append to hook function arrays ( #8406 )
...
Use add-zsh-hook to add functions to hooks. That way they won't be added again
when doing `source ~/.zshrc` multiple times.
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
7 years ago
Marc Cornellà
1546e1226a
Fix badly resolved rebase conflict
7 years ago