remove ^M in hist

This commit is contained in:
xiongdian.me 2023-02-01 21:03:49 +08:00
parent 81e83ab956
commit d0f6ef240e
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ main()
if [[ -z "$k" ]]; then if [[ -z "$k" ]]; then
continue continue
fi fi
(curl -fsSL "https://pastebin.com/raw/$k" && echo) | do_append (curl -fsSL "https://pastebin.com/raw/$k" && echo) | sed 's/\r//' | do_append
done done
} }

View File

@ -49,9 +49,9 @@ git reset --hard $DFS_VERSION
# then check install.sh # then check install.sh
./install.sh -dx DFS_CI=1 -H e153a2eL,f8At3iFw ./install.sh -dx DFS_CI=1 -H e153a2eL,f8At3iFw
grep -q "testhist 1" ~/.zsh_history grep -qx "testhist 1" ~/.zsh_history
grep -q "testhist 4" ~/.zsh_history grep -qx "testhist 4" ~/.zsh_history
grep -q "DFS_CI=1" ~/.config/dotfiles/env grep -qx "DFS_CI=1" ~/.config/dotfiles/env
./install.sh -l -x DFS_CI=1 ./install.sh -l -x DFS_CI=1
dfs version dfs version
test `git rev-parse HEAD` = `curl -fsSL https://api.beardic.cn/get-var/dfs-commit-id` test `git rev-parse HEAD` = `curl -fsSL https://api.beardic.cn/get-var/dfs-commit-id`