#!/usr/bin/elvish var selection = clipboard if (<= 1 (count $args) ) { set selection = $args[0] } var length = 32 if (<= 2 (count $args) ) { set length = $args[1] } pwgen $length 1 | xclip -i -selection $selection