Pages

Sunday, October 5, 2014

alias that copies text into clipboard and clears clipboard after X seconds

$ alias lp="echo -n \"some text to copy\" | pbcopy; sleep 120 && echo -n \"done\" | pbcopy &"

This alias is useful if you need to use some text often. Executing the alias will copy the text into your clipboard and then remove it after X seconds.




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1pYxuZ3

No comments:

Post a Comment