Add 'pwgen' alias to .bashrc. Update .ssh/config.
This commit is contained in:
parent
f1d9d95469
commit
a02d0684fc
2 changed files with 16 additions and 4 deletions
3
.bashrc
3
.bashrc
|
@ -13,7 +13,7 @@ HISTTIMEFORMAT="%d/%m/%y %H:%M:%S "
|
||||||
history -r
|
history -r
|
||||||
|
|
||||||
# Set the prompts.
|
# Set the prompts.
|
||||||
if (( ${BASH_VERSINFO[0]} == 4 )); then
|
if (( ${BASH_VERSINFO[0]} >= 4 )); then
|
||||||
export PROMPT_DIRTRIM=2
|
export PROMPT_DIRTRIM=2
|
||||||
if (( $(id -u) == 0 )); then
|
if (( $(id -u) == 0 )); then
|
||||||
PS1="[\[\033[1;31m\]\u\[\033[0m\]@\h] \w ->"
|
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 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 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 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 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 pinfo >/dev/null 2>&1 && alias info='pinfo'
|
||||||
hash ping >/dev/null 2>&1 && alias ping='ping -b'
|
hash ping >/dev/null 2>&1 && alias ping='ping -b'
|
||||||
|
|
17
.ssh/config
17
.ssh/config
|
@ -17,18 +17,29 @@ Host leela leela.open-source.co.uk
|
||||||
HostName leela.open-source.co.uk
|
HostName leela.open-source.co.uk
|
||||||
Port 9922
|
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
|
Host slackware.uk
|
||||||
ForwardAgent yes
|
ForwardAgent yes
|
||||||
Hostname slackware.uk
|
Hostname slackware.uk
|
||||||
Port 9922
|
Port 9922
|
||||||
|
|
||||||
Host full-* build-* clone-*
|
Host full-* build-* clone-*
|
||||||
|
ForwardAgent yes
|
||||||
User root
|
User root
|
||||||
|
|
||||||
Host slackware.uk
|
Host backupnas
|
||||||
ForwardAgent yes
|
ForwardAgent yes
|
||||||
Hostname slackware.uk
|
Hostname helium.rainsbrook.co.uk
|
||||||
Port 9922
|
Port 2048
|
||||||
|
|
||||||
Host *
|
Host *
|
||||||
# AddKeysToAgent yes
|
# AddKeysToAgent yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue