Skip to content

Commit

Permalink
Add quickuuid function to .bashrc.
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeto committed Sep 10, 2016
1 parent 936619b commit 4b71572
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,8 @@ say() {
-A Mozilla --get --silent $base | \
vlc --play-and-exit --quiet -Idummy - &> /dev/null
}

quickuuid() {
local x=$(tr -cd 'a-f0-9' < /dev/urandom | head -c32)
echo "${x:0:8}-${x:8:4}-${x:12:4}-${x:15:4}-${x:19:12}"
}

0 comments on commit 4b71572

Please sign in to comment.