pwgen
This commit is contained in:
parent
7178931449
commit
5d5c9053f7
1 changed files with 11 additions and 1 deletions
12
.bash_extra
12
.bash_extra
|
@ -97,6 +97,17 @@ function m2m {
|
||||||
# fi
|
# fi
|
||||||
# fi
|
# fi
|
||||||
#}
|
#}
|
||||||
|
|
||||||
|
function pwgen {
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
# Command ist notwendig da die Funktion genau wie das Binary heißt
|
||||||
|
# https://unix.stackexchange.com/questions/454553/bash-shadow-a-command-function-with-same-name-as-command
|
||||||
|
command pwgen --capitalize --num-passwords=1 --numerals --secure $1
|
||||||
|
fi
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
command pwgen
|
||||||
|
fi
|
||||||
|
}
|
||||||
function rgf {
|
function rgf {
|
||||||
if [[ "$1" == "--help" ]]; then
|
if [[ "$1" == "--help" ]]; then
|
||||||
echo "Finde alle Dateien die "\$1" im Namen haben."
|
echo "Finde alle Dateien die "\$1" im Namen haben."
|
||||||
|
@ -231,7 +242,6 @@ alias mv="mv -i "
|
||||||
alias cp="cp -i "
|
alias cp="cp -i "
|
||||||
alias rm="rm -i "
|
alias rm="rm -i "
|
||||||
# rest
|
# rest
|
||||||
alias rs="pwgen --capitalize --num-passwords=1 --numerals --secure 14"
|
|
||||||
alias suspend="~/dotfiles/scripts/pwr.sh -sd"
|
alias suspend="~/dotfiles/scripts/pwr.sh -sd"
|
||||||
alias hibernate="~/dotfiles/scripts/pwr.sh -hb"
|
alias hibernate="~/dotfiles/scripts/pwr.sh -hb"
|
||||||
alias restart="~/dotfiles/scripts/pwr.sh -r"
|
alias restart="~/dotfiles/scripts/pwr.sh -r"
|
||||||
|
|
Loading…
Reference in a new issue