diff --git a/tmpmail b/tmpmail index 9b9984a..fb7857d 100755 --- a/tmpmail +++ b/tmpmail @@ -5,7 +5,7 @@ # Dependencies: jq, curl, w3m # -version=1.2.0 +version=1.2.1 # By default 'tmpmail' uses 'w3m' as it's web browser to render # the HTML of the email @@ -288,11 +288,13 @@ view_recent_email() { view_email "$mail_id" } + copy_email_to_clipboard(){ # Copy the email thats being used to the user's clipboard $copy_to_clipboard_cmd < $tmpmail_email_address } + die() { # Print error message and exit # diff --git a/tmpmail.1 b/tmpmail.1 index 45883d5..3ebd326 100644 --- a/tmpmail.1 +++ b/tmpmail.1 @@ -29,6 +29,9 @@ shows the email message with specified Specify .Ar BROWSER (default: w3m) that is used to render the HTML of the email +.It Fl Fl clipboard-cmd Ar COMMAND +Specify the COMMAND to use for copying the email address to your +clipboard (default: xclip -selection c) .It Fl g , Fl Fl generate Op Ar ADDRESS Generate a new email address, either the specified .Ar ADDRESS ,