projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d0d106
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Thu, 22 Jan 2015 07:22:03 +0000
(08:22 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 22 Jan 2015 07:22:03 +0000
(08:22 +0100)
bashrc
patch
|
blob
|
history
diff --git
a/bashrc
b/bashrc
index
b7e3262
..
178504e
100644
(file)
--- a/
bashrc
+++ b/
bashrc
@@
-238,6
+238,13
@@
function bak () {
done
}
+# Password generator
+
+function pwgen () {
+ tr -dc A-Za-z0-9 < /dev/urandom | head -c16
+ echo
+}
+
function ua () {
[[ "$1" ]] || ( echo "Universal unarchive: ua <file> [<file> ...]" >&2 && return 1)
@@
-616,7
+623,7
@@
alias ripcd=abcde
function mksmall () {
- PARAMS="-geometry 800x600"
+
[[ "${PARAMS}" ]] ||
PARAMS="-geometry 800x600"
# Auto-orient does not seem to work at all, hence the ugly hack
# with exif below