Repository navigation
v4.2.5000
Murex usage has raised considerably in recent weeks. This release addresses a number of feature requests and bugs raised on Github.
Breaking Changes
none
Features
-
new flag in
foreach:--step <int>. This allows theforeachto jump indexes at a time. When used, all the lines jumped are merged into a JSON array and that is passed to theforeachnested code block -
new alias
builtin=>fexec builtin. This was added to bring more familiarity to those coming from Bash et al (#608) -
on Darwin, Homebrew defaults are imported, just like you'd expect them to be from any other shell
-
aa few new hotkeys (#611) (#613):
-
ctrl+a: jump to beginning of line -
ctrl+e: jump to end of line -
alt+f: jump forwards a word at a time -
alt+b: jump backwards a word at a time -
ctrl+k: clear line after cursor position -
ctrl+l: clear entire screen -
ctrl+g: same asesc
-
-
`open`` builtin should fallback to system default if type unknown (#620)
-
pre-prompt-funcadded toconfig. Block runs before the interactive prompt is displayed -
post-prompt-funcadded toconfig. Block runs after the interactive prompt has been exited but before any command lines have been executed -
auto-cd option added to
config:config: set shell auto-cd true. This allows you to traverse directories without having to prefixcd. By default it is disabled -
Meta values added to
foreach,formap, andwhile. Meta values are a$.variable that holds meta-information about the running block, such as the number of iterations in a loop -
commandalias forexec(for familiarity with Bash) -
builtinalias forfexec builtin(for familiarity with Bash)
Bug Fixes:
-
brace encapsulated variables, eg
$(foobar), now autocomplete as expected -
improvements to inlining images in iTerm2 when shell running on top of
tmux. It still doesn't work reliably but this is an issue withtmuxrather than Murex -
methodforwards exceptions rather than errors. This behaviour has been changed to surface issues as errors -
profile_preload.mxadded to profile defaults. This will be loaded before any of the OS-specific profiles -
missing rune length check causing the shell to panic (#617)
-
fixed deadlock in flag parsing
-
zero length string title bars should be ignored (#614)
-
minor improvements to documentation