Add 'pwgen' alias to .bashrc. Update .ssh/config.

This commit is contained in:
Darren 'Tadgy' Austin 2019-03-21 21:25:02 +00:00
commit a02d0684fc
2 changed files with 16 additions and 4 deletions

View file

@ -13,7 +13,7 @@ HISTTIMEFORMAT="%d/%m/%y %H:%M:%S "
history -r
# Set the prompts.
if (( ${BASH_VERSINFO[0]} == 4 )); then
if (( ${BASH_VERSINFO[0]} >= 4 )); then
export PROMPT_DIRTRIM=2
if (( $(id -u) == 0 )); then
PS1="[\[\033[1;31m\]\u\[\033[0m\]@\h] \w ->"
@ -39,6 +39,7 @@ if [ "$_PLATFORM" = "Linux" ]; then
hash ls >/dev/null 2>&1 && alias ls='ls -bFv --color=auto'
hash lynx >/dev/null 2>&1 && alias lynx='lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss'
hash minicom >/dev/null 2>&1 && alias minicom='minicom -m -c on'
hash mkpasswd >/dev/null 2>&1 && alias pwgen='mkpasswd -m sha512crypt'
hash pine >/dev/null 2>&1 && alias pine='pine -p "{mail.open-source.co.uk/Service=IMAP/User=darren@afterdark.org.uk/TLS/NoValidate-Cert/NoRsh}.pinerc"'
hash pinfo >/dev/null 2>&1 && alias info='pinfo'
hash ping >/dev/null 2>&1 && alias ping='ping -b'

View file

@ -17,18 +17,29 @@ Host leela leela.open-source.co.uk
HostName leela.open-source.co.uk
Port 9922
Host amy amy.open-source.co.uk
ForwardAgent yes
HostName amy.open-source.co.uk
Port 9922
Host hermes hermes.open-source.co.uk
ForwardAgent yes
HostName hermes.open-source.co.uk
Port 9922
Host slackware.uk
ForwardAgent yes
Hostname slackware.uk
Port 9922
Host full-* build-* clone-*
ForwardAgent yes
User root
Host slackware.uk
Host backupnas
ForwardAgent yes
Hostname slackware.uk
Port 9922
Hostname helium.rainsbrook.co.uk
Port 2048
Host *
# AddKeysToAgent yes