Peter Kingswell
b3c1cb4ce9
updates
2022-08-03 04:23:17 -04:00
sming
a656e5d65c
Merge remote-tracking branch 'upstream/master'
2022-08-01 15:46:27 -04:00
Peter Kingswell
1df0f28541
updates
2022-08-01 15:31:36 -04:00
Marc Cornellà
39b600e9e5
fix(lib): encode all arguments besides the first in omz_urlencode
...
Fixes 140c977a3d (commitcomment-73688165)
2022-05-15 13:20:33 +02:00
Peter Kingswell
ccabffa608
Merge branch 'master' of https://github.com/sming/ohmyzsh
2022-05-14 21:32:41 -04:00
Peter Kingswell
a8803d5668
various worthless shit
2022-05-14 21:17:55 -04:00
Peter Kingswell
62fe9a0185
Merge branch 'master' of https://github.com/ohmyzsh/ohmyzsh
2022-05-07 05:29:26 -04:00
Peter Kingswell
122267cd9e
latest twiddling :(
2022-05-07 05:26:57 -04:00
Peter Kingswell
ef398bf673
very large update
2022-04-01 13:56:22 -04:00
Marc Cornellà
6cb41b70a6
fix(lib): fix omz_urldecode unsafe eval bug
...
The `omz_urldecode` function uses an eval to decode the input which can be
exploited to inject commands. This is used only in the svn plugin and it
requires a complex process to exploit, so it is highly unlikely to have been
used by an attacker.
2021-11-11 22:44:18 +01:00
Kevin Burke
e86c6f5e7f
style: use -n flag in head and tail commands ( #10391 )
...
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-11-09 09:04:10 +01:00
Peter Kingswell
597092aa83
various important improvements
2021-08-26 17:15:53 -04:00
Marc Cornellà
7eeb1e193d
refactor(lib): refactor take functions
2021-08-10 21:09:21 +02:00
Marc Cornellà
c249288151
feat(lib): add mkcd as equivalent to takedir ( #9749 )
...
Fixes #9749
2021-08-10 21:06:46 +02:00
Peter Kingswell
f93aa9d24b
Merge branch 'master' of git://github.com/ohmyzsh/ohmyzsh
2021-07-15 10:43:47 -04:00
Peter Kingswell
e278d94f6f
important aliases, refactorings, all sorts
2021-07-15 10:36:48 -04:00
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>
2021-06-11 21:09:08 -07:00
Peter Kingswell
b2a9b62fa5
various updates
2021-04-15 10:40:29 -04:00
Marc Cornellà
edf28b8827
fix(lib): use -N syntax in head and tail to support Solaris ( #6391 )
...
Closes #6391
Co-authored-by: Sergey Mashkov <cy6erGn0m@gmail.com>
2021-03-21 13:37:50 -04:00
Marc Cornellà
1818ed6685
feat(lib)!: soft-deprecate upgrade_oh_my_zsh function for everybody
...
BREAKING CHANGE: the `upgrade_oh_my_zsh` function now calls `omz update` directly.
2021-03-21 13:37:49 -04:00
Marc Cornellà
92afc883c4
fix(updater): don't show changelog when running unattended update ( #9495 )
...
Fixes #9495
2021-03-21 13:37:49 -04:00
Marc Cornellà
db4435a1e6
fix(updater): correctly restart the zsh session when the update pulled changes
2021-03-21 13:37:49 -04:00
Marc Cornellà
73dcbf6dad
refactor(updater): switch to Zsh execution and fix git remote detection logic
2021-03-21 13:37:49 -04:00
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>
2021-01-16 18:59:24 +01:00
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.
2020-12-07 20:58:12 +01:00
Marc Cornellà
5a888ff4ac
fix(updater): don't show changelog when running unattended update ( #9495 )
...
Fixes #9495
2020-12-07 20:58:12 +01:00
Marc Cornellà
e093a4cf62
fix(updater): correctly restart the zsh session when the update pulled changes
2020-11-30 15:48:46 +01:00
Marc Cornellà
889cd7acf3
refactor(updater): switch to Zsh execution and fix git remote detection logic
2020-11-30 15:48:46 +01:00
Peter Kingswell
2f780fb7c5
various improvements
2020-11-24 16:19:40 -05:00
Peter Kingswell
628fe75ce3
merged in master & gfind improvements
2020-11-19 21:01:14 -05:00
Peter Kingswell
6dec4d414f
stuff
2020-11-19 21:01:14 -05:00
Peter Kingswell
d1be9bba2e
some new functions
2020-11-19 21:01:14 -05:00
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
2020-11-09 18:33:59 +01:00
Marc Cornellà
caff704f41
lib: clean up zsh_stats function
2020-09-26 12:17:12 +02:00
Marc Cornellà
89400f156a
Remove zsh session restart on omz update and upgrade_oh_my_zsh
2020-08-18 19:51:19 +02:00
Marc Cornellà
7deda85f8c
Fix upgrade_oh_my_zsh function deprecation
2020-08-17 22:11:02 +02:00
Dario Vladović
3935ccce64
cli: add update command ( #9094 )
...
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-08-04 17:48:29 +02:00
Marc Cornellà
0caae9082a
lib: speed up slow parts of the lib files; other small fixes
2020-04-05 21:37:45 +02:00
Marek Dědič
bbe54e4e60
lib: use command to run rm in upgrade function ( #8696 )
2020-03-03 13:46:06 +01:00
Marc Cornellà
40b013f5f1
lib: delete upgrade lock in upgrade_oh_my_zsh
...
Provides a different solution to #8332 and #8333
2020-02-24 20:27:21 +01:00
Marc Cornellà
095d56b5ea
Fix WSL check for WSL 2 and simplify nohup in open_command
...
WSL 2 changes the output of `uname -r`. For instance,
WSL 1: 4.4.0-18980-Microsoft
WSL 2: 4.19.67-microsoft-standard
Since WSL 2 lowercases the M, we can match for the rest of the string
which remains lowercase throughout both versions. Another option would
be to match for both upper- and lower-case Ms, like that:
$(uname -r) = *[Mm]icrosoft*
Fixed use of nohup in open_command where it was only necessary for
xdg-open (and actually harmful for cmd.exe in WSL 2). The current logic
is simpler and more future-proof.
2019-09-19 16:20:02 +02:00
Marc Cornellà
55575b88f9
lib: optimize default and env_default
2019-02-25 23:20:47 +01:00
Marc Cornellà
2c1ff85bb2
core: fix alias_value function
...
Fixes #5835
2018-08-09 19:49:02 +02:00
sam-lunt
7cba6bb038
Enable passing multiple directories to take ( #6900 )
...
* enable passing multiple directories to take
* Update take function
Do not call cd if mkdir fails
2018-07-02 17:05:24 +02:00
Marc Cornellà
f898ada8e3
open_command: fix and improve command for WSL
...
- 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-30 21:13:08 +02:00
Marc Cornellà
12086593a4
open_command: simplify code
2018-06-30 21:13:08 +02:00
Marc Cornellà
93d9431890
Check for Microsoft's WSL in open_command ( #6751 )
...
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-24 23:47:26 +02:00
Patrick José Pereira
2a6c40f66f
'lib/functions.zsh: Solve typos'
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2016-12-30 10:34:16 -02:00
Fredrik Fornwall
9772f8e10d
Replace /bin/sh with sh for portability ( #5291 )
...
This makes things work even on system lacking /bin/sh, such as on
non-rooted Android systems.
2016-08-09 02:39:11 +02:00
Marc Cornellà
584e0a6ef9
Use shwordsplit in open_command()
2015-11-30 21:27:58 +01:00