Skip to content

Commit

Permalink
Test perl
Browse files Browse the repository at this point in the history
  • Loading branch information
wulfgarpro committed Sep 16, 2023
1 parent 17265d3 commit 17ef92c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions history-sync.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# * James Fraser <[email protected]>
# https://www.wulfgar.pro
# ----------------------------------------------------------------
#
autoload -U colors && colors

alias zhpl=history_sync_pull
Expand Down Expand Up @@ -93,7 +92,7 @@ function _squash_multiline_commands_in_files() {
&& mv "${TMP_FILE_2}" "${TMP_FILE_1}"

# Replace all \n with a sequence of symbols
if [[ "$SED_VERSION" == *"GNU"* ]]; then
if [[ "$SED_VERSION" != *"GNU"* ]]; then
SED ':a;N;$!ba;s/\n/'" ${NL_REPLACEMENT} "'/g' \
"${TMP_FILE_1}" > "${TMP_FILE_2}"
else
Expand Down
1 change: 1 addition & 0 deletions test/test.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function check_env_exists() {

function check_history() {
rg -U "$1" ~/.zsh_history >/dev/null
cat ~/.zsh_history
[[ $? -eq 0 ]] || {failure "FAILURE: History did not match '$1'"}
}

Expand Down

0 comments on commit 17ef92c

Please sign in to comment.