mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
fix(clipboard): strip carriage returns from PowerShell output on WSL
This commit is contained in:
parent
5c4f27b716
commit
14b99b7d52
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ function detect-clipboard() {
|
|||
function clippaste() { cat /dev/clipboard; }
|
||||
elif (( $+commands[clip.exe] )) && (( $+commands[powershell.exe] )); then
|
||||
function clipcopy() { cat "${1:-/dev/stdin}" | clip.exe; }
|
||||
function clippaste() { powershell.exe -noprofile -command Get-Clipboard; }
|
||||
function clippaste() { powershell.exe -noprofile -command Get-Clipboard | tr -d '\r'; }
|
||||
elif [ -n "${WAYLAND_DISPLAY:-}" ] && (( ${+commands[wl-copy]} )) && (( ${+commands[wl-paste]} )); then
|
||||
function clipcopy() { cat "${1:-/dev/stdin}" | wl-copy &>/dev/null &|; }
|
||||
function clippaste() { wl-paste --no-newline; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue