mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Slightly condensed sprunge now that sendtoclip is its own function.
This commit is contained in:
parent
e733352ff1
commit
7061378909
1 changed files with 1 additions and 4 deletions
|
|
@ -64,8 +64,5 @@ sprunge() {
|
|||
echo $url
|
||||
|
||||
# don't copy to clipboad if piped
|
||||
[[ ! -t 1 ]] && return 0
|
||||
|
||||
# copy urls to primary and secondary clipboards
|
||||
sendtoclip $urls
|
||||
[[ -t 1 ]] && sendtoclip $urls
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue