neated the output of "pubkey" alias

This commit is contained in:
Bryan Joshua Pedini 2022-09-03 19:22:12 +02:00
parent 8a87db917d
commit 3a1f00ae34

View File

@ -1,4 +1,4 @@
alias pubkey='cat ~/.ssh/id_*.pub'
alias pubkey='for PUBKEY_FILE in $(ls ~/.ssh/id_*.pub); do echo "${PUBKEY_FILE} :" | sed -e "s/.*id//;s/\.pub//"; cat "${PUBKEY_FILE}"; echo; done'
alias hosts='sudo nano /etc/hosts'
alias historygrep='history | grep'
alias sshconfig='nano ~/.ssh/config'