rasen58
Joined 12 years ago
Karma
61
Submissions
52
Member since
Mar 16
[email protected]
View on Hacker NewsJoined 12 years ago
But do you know why it doesn't seem to work with the `pbfilter` function?
If I do directly `pbpaste | vipe | pbcopy`, then it opens vim and the clipboard text is pasted there. But if I run `pbfilter | vipe`, then vim opens with a blank buffer.
function pbfilter() {
if [ $# -gt 0 ]; then
pbpaste | "$@" | pbcopy
else
pbpaste | pbcopy
fi
}
It seems that the number of args is 0 for some reasonYou’re the one who is actually being combative
It definitely hasn’t learned math but it definitely has learned general concepts