Marc Cornellà
cbb534267a
feat(cli): add `theme set` subcommand to change theme in .zshrc
...
Fixes #9087
5 years ago
Marc Cornellà
8dedf26294
style(cli): print usage messages to stderr
5 years ago
Marc Cornellà
7a4f4ad91e
fix(lib): fix clipboard copy on Termux
5 years ago
Marc Cornellà
bc7ce982dd
style(cli): fill rows in column output in theme and plugin `list` commands
5 years ago
Marc Cornellà
bf888680ea
refactor(cli): extract substitution awk script in `plugin disable`
5 years ago
Marc Cornellà
708bbe12c5
fix(cli): fix multiple errors in `plugin disable/enable`
5 years ago
pollyduan
4455c13e06
feat(cli): add subcommands for plugin `enable` and `disable` ( #9869 )
...
Co-authored-by: Marc Cornellà <hello@mcornella.com>
5 years ago
James Eapen
6e4c9df4a4
feat(cli): add `plugin load` subcommand ( #9872 )
...
Fixes #9672
Co-authored-by: Marc Cornellà <hello@mcornella.com>
5 years ago
Marc Cornellà
7eeb1e193d
refactor(lib): refactor take functions
5 years ago
Marc Cornellà
c249288151
feat(lib): add `mkcd` as equivalent to `takedir` ( #9749 )
...
Fixes #9749
5 years ago
Marc Cornellà
e32d4b1e19
fix(lib): remove `kubectx` stub prompt function from lib
...
Fixes #9974
5 years ago
Stanisław Szydło
5152d381bb
feat(kubectx): adding a new plugin for 'kubectx' ( #6114 )
...
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
Co-authored-by: Robby Russell <robby@planetargon.com>
5 years ago
Mitchel Humpherys
f68d65d32a
feat(take): add support to `take' for taking remote urls ( #2029 )
...
Download, extract, and cd into the resulting directory.
Co-authored-by: Mitchel Humpherys <mitchelh@codeaurora.org>
5 years ago
Marc Cornellà
02d07f3e3d
fix: use `$USERNAME` guaranteed to always be defined in zsh
...
Fixes #9701
5 years ago
Vlad Korolev
0ab87c26c1
fix(terraform): use faster method to get workspace ( #9709 )
...
Also add tf_prompt_info to the list of prompt functions so theme writers are aware of it
5 years ago
Cai Cooper
6fbad5bf72
fix(update): don't error on upgrade no-op ( #9685 )
...
* Don't error on upgrade no-op
No error code is required for a non failure scenario.
* Manually check whether changes were pulled in `omz update`
Co-authored-by: Marc Cornellà <hello@mcornella.com>
5 years ago
Marc Cornellà
8b37f817c2
fix(lib): use -N syntax in `head` and `tail` to support Solaris ( #6391 )
...
Closes #6391
Co-authored-by: Sergey Mashkov <cy6erGn0m@gmail.com>
5 years ago
Kyle Gerard Felker
c9bf8b4a84
fix(lib): update Emacs terminal detection in `title` function ( #9577 )
...
Environment variable EMACS was replaced by INSIDE_EMACS
5 years ago
Marc Cornellà
6b57839292
fix(CLI): show symlinked themes in `omz theme list`
5 years ago
Fernando Crespo
9e5f280f87
feat(CLI): add `plugin info` subcommand ( #9452 )
...
Co-authored-by: Fernando Crespo <fxcrespo@iMac-44054.local>
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
5 years ago
Seamile
88ffc2f666
fix(lib): mark changes as MODIFIED on 'MM' in `git_prompt_status` ( #9552 )
...
In the output of `git status -sb`, 'MM' indicates there are both added and modified changes.
This change marks that case as MODIFIED instead of ADDED.
6 years ago
Marc Cornellà
0f6836701d
fix(CLI): properly get zsh command in `omz update` ( #9558 )
...
Zsh versions older than 5.3 don't have ZSH_ARGZERO, so use an alternative
method to get the zsh command.
Fixes #9558
6 years ago
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