rootfs/home/andre/.bashrc aktualisiert
This commit is contained in:
@@ -227,7 +227,7 @@ conv_owi() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
arg_help() {
|
arg_h() {
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
Aliases"
|
Aliases"
|
||||||
@@ -909,7 +909,7 @@ rm ziffern
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rotate () {
|
rotate() {
|
||||||
file=$1
|
file=$1
|
||||||
if [ "$file" == "" ]
|
if [ "$file" == "" ]
|
||||||
then
|
then
|
||||||
@@ -939,12 +939,12 @@ rotate () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
wetter () {
|
wetter() {
|
||||||
c=$1
|
c=$1
|
||||||
curl wttr.in/$c
|
curl wttr.in/$c
|
||||||
}
|
}
|
||||||
|
|
||||||
wi () {
|
wi() {
|
||||||
f=$1
|
f=$1
|
||||||
d=$(date "+%Y-%m-%d")
|
d=$(date "+%Y-%m-%d")
|
||||||
rotate $f.bu.$d > /dev/null 2>&1
|
rotate $f.bu.$d > /dev/null 2>&1
|
||||||
@@ -952,7 +952,7 @@ wi () {
|
|||||||
vi -c ":syntax on" -c "set number" $f
|
vi -c ":syntax on" -c "set number" $f
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh_env () {
|
ssh_env() {
|
||||||
u=$1
|
u=$1
|
||||||
s=$2
|
s=$2
|
||||||
|
|
||||||
@@ -962,11 +962,11 @@ ssh_env () {
|
|||||||
ssh -q -X -oStrictHostKeyChecking=no $u@$s
|
ssh -q -X -oStrictHostKeyChecking=no $u@$s
|
||||||
}
|
}
|
||||||
|
|
||||||
crossword () {
|
crossword() {
|
||||||
grep -hi "^$1\$" /usr/share/dict/* | sort | uniq
|
grep -hi "^$1\$" /usr/share/dict/* | sort | uniq
|
||||||
}
|
}
|
||||||
|
|
||||||
install_ssh_keypair_files () {
|
install_ssh_keypair_files() {
|
||||||
mkdir $HOMEDIR/.ssh/
|
mkdir $HOMEDIR/.ssh/
|
||||||
echo "-----BEGIN OPENSSH PRIVATE KEY-----
|
echo "-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
|
||||||
@@ -1013,7 +1013,7 @@ udFwOoIdCrLECMaAOCtOrObBwy7wSQH3RTbxn8Fn4tvFfD0FJKOtch+NuwtSbIC5buqrF/
|
|||||||
chmod 0600 $HOMEDIR/.ssh/ansible_id_rsa.pub
|
chmod 0600 $HOMEDIR/.ssh/ansible_id_rsa.pub
|
||||||
}
|
}
|
||||||
|
|
||||||
install_ssh_authorized_key () {
|
install_ssh_authorized_key() {
|
||||||
if [ "$1" == "" ]
|
if [ "$1" == "" ]
|
||||||
then
|
then
|
||||||
echo "Installiert ssh-ed25519 in $HOMEDIR/.ssh/authorized_keys"
|
echo "Installiert ssh-ed25519 in $HOMEDIR/.ssh/authorized_keys"
|
||||||
|
|||||||
Reference in New Issue
Block a user