diff --git a/.zsh/oh-my-custom/oh-my-posh.yaml b/.zsh/oh-my-custom/oh-my-posh.yaml index 4e90a46..80166b1 100644 --- a/.zsh/oh-my-custom/oh-my-posh.yaml +++ b/.zsh/oh-my-custom/oh-my-posh.yaml @@ -58,6 +58,10 @@ blocks: always_enabled: false template: '{{ if gt .Code 0 }}{{ .Code }}{{ else }}{{ end }}' + - type: text + style: plain + template: "\u200b" + - type: prompt alignment: right overflow: hide diff --git a/bin/strip-paste-buffer b/bin/strip-paste-buffer new file mode 100755 index 0000000..5dc188a --- /dev/null +++ b/bin/strip-paste-buffer @@ -0,0 +1,3 @@ +#!/bin/bash + +xclip -selection c -o | sed "s/$(printf '\u200b').*//" | xclip -selection c -i