Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
sed
-remove-newlines abbreviation
this version of the command: - uses no exclamation point (`!`),¹ obviating the need to modify `$LBUFFER`² - escapes a newline (`\n` is saved here as `\\n`)³ so that when printed to the console, the newline recipe appears correctly as `\n`⁴ rather than as a mid-command linebreak⁵ --- 1. `sed -e ':a' -e 'N' -e '$! b a' -e 's/\n//g'` performs the same task, but uses an exclamation point (`!`), which requires modifying `$LBUFFER`² 2. olets/zsh-abbr#84 (comment) 3. `abbr -g "sed -n 'H;${x;s/\\n//gp;}'"` 4. ` sed -n 'H;${x;s/\n//gp;}'` 5. ` sed -n 'H;${x;s/⏎//gp;}'` Signed-off-by: Lucas Larson <[email protected]>
- Loading branch information