Marc Cornellà
28265812f8
chore!: notify breaking change in `git_prompt_info`
...
BREAKING CHANGE: the git config option to skip running `git_prompt_info` has changed from `oh-my-zsh.hide-status` to `oh-my-zsh.hide-info` (#9188 ).
6 years ago
Bruno Borges
2f39c68ab0
feat(lib): show upstream branch in `git_prompt_info` ( #9188 )
...
Show the remote branch the local branch is tracking if `ZSH_THEME_GIT_SHOW_UPSTREAM`
is set, like so: `ZSH_THEME_GIT_SHOW_UPSTREAM=1`.
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
6 years ago
Marc Cornellà
4b7dba5b75
feat(lib)!: soft-deprecate `upgrade_oh_my_zsh` function for everybody
...
BREAKING CHANGE: the `upgrade_oh_my_zsh` function now calls `omz update` directly.
6 years ago
Marc Cornellà
5a888ff4ac
fix(updater): don't show changelog when running unattended update ( #9495 )
...
Fixes #9495
6 years ago
Marc Cornellà
1aa2b18e29
feat(CLI): add `--unattended` flag to `omz update` to not reload zsh ( #9187 )
6 years ago
Marc Cornellà
7712da89ee
feat(CLI): add `omz changelog` command
6 years ago
Marc Cornellà
e093a4cf62
fix(updater): correctly restart the zsh session when the update pulled changes
6 years ago
Marc Cornellà
889cd7acf3
refactor(updater): switch to Zsh execution and fix git remote detection logic
6 years ago
Marc Cornellà
a3e0f4f2af
fix(lib): make opts local in omz_urlencode to fix scoping bug
...
Fixes error message when using zplug, due to $opts having been declared
as an associative array:
omz_urlencode:2: bad set of key/value pairs for associative array
Fixes #9429
6 years ago
Marc Cornellà
28ed2880c7
Revert "lib: remove share_history"
...
This reverts commit 2376022890 .
Fixes #9430
6 years ago
Marc Cornellà
bad9ee0004
lib: delete zsh session history list
...
NOTE: it still lives somewhere in the current zsh process. Run `fc -P` to
restore it.
6 years ago
Marc Cornellà
3f42700c0d
Revert "lib: treat _ and - as part of a word"
...
This reverts commit 50dc4ab357 .
The community has spoken:
- https://github.com/ohmyzsh/ohmyzsh/issues/9367
- https://github.com/ohmyzsh/ohmyzsh/issues/8743
Fixes #9367
6 years ago
Marc Cornellà
f9f45ca222
lib: follow symlinked plugins in `plugin list` CLI command
...
See https://github.com/ohmyzsh/ohmyzsh/issues/9087#issuecomment-712460275
6 years ago
Marc Cornellà
7525b1d533
lib: allow bare output in theme and plugins list command
6 years ago
Marc Cornellà
902954d1cc
lib: use `column` to format plugin and theme list CLI commands
6 years ago
Marc Cornellà
6e7b861675
lib: fix regex bug in git_prompt_status
...
Fixes #9326
6 years ago
Marc Cornellà
2376022890
lib: remove share_history
...
Related: #2537 , #9324
6 years ago
Marc Cornellà
75ae0e905f
lib: fix `omz help` and reword
6 years ago
Marc Cornellà
982d010be5
lib: fix fmt removing ESC characters in theme and plugin list CLI commands
6 years ago
Marc Cornellà
d8cb670235
nvm: simplify nvm.sh and bash completion loading
6 years ago
Andrew Janke
ef44416df2
nvm: use `nvm current` in nvm_prompt_info and look in alternate install locations
...
This makes it work regardless of where nvm is loaded from. And it uses nvm's
version strings, which distinguish the "system" and "none" NVM environments,
instead of reporting the specific version of the system node.js or erroring,
respectively.
Fixes #4336
Closes #4338
6 years ago
Marc Cornellà
fc6c9ca4b4
lib: fix formatting in `omz pr clean` CLI command
6 years ago
Marc Cornellà
1bb402190d
lib: add plugin and theme subcommands and fix `omz pr clean`
...
- Add plugin and theme subcommand
Fixes #8961
- Add confirmation prompt to `omz pr clean` command
- Correct behavior on invalid answers on confirmation prompts
If an invalid option is supplied, don't proceed with the potentially
destructive action.
Co-authored-by: Rishabh Bohra <rishabhbohra01@gmail.com>
6 years ago
Marc Cornellà
865f6572d5
Fix performance drop of iterating over lines and other stuff
...
- Fix 'STASHED' key and unsupported syntax in 5.0.2
- Optimise `if` statement to make it more idiomatic.
6 years ago
Billy Conn
45a954cb0f
git_prompt_status now uses hash lookups instead of multiple greps
6 years ago
Michał Dębski
297238b739
lib: hide git_prompt_status when hide-status is set
...
Closes #4912
Closes #5137
Closes #8071
6 years ago
Michele Bologna
58ff4e1d2e
lib: follow standards in window title ( #9320 )
...
In Ubuntu and Debian, in scp, and in rsync the prompt is by default specified as in
user@hostname:/path/to/directory
while the previous title in ohmyzsh was
user@hostname: /path/to/directory
6 years ago
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