personal-linux-config/bashrc_overrides/convenience_aliases

14 lines
867 B
Plaintext
Raw Normal View History

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'
2022-01-03 09:11:47 +00:00
alias sshconfig='nano ~/.ssh/config'
2022-08-03 06:24:25 +00:00
alias bashrc='. ~/.bashrc'
2022-08-21 14:33:25 +00:00
alias sshagent='eval `ssh-agent` && ssh-add ~/.ssh/id_!(*.pub)'
2021-07-09 16:39:31 +00:00
alias newrepo='bash <(curl -s https://get.bjphoster.com/new-git-repo.sh)'
2022-02-10 16:41:29 +00:00
alias newansibleworkspace='bash <(curl -s https://get.bjphoster.com/new-ansible-workspace.sh)'
alias sambaserver='docker run -it --rm --network host -p 137:137 -p 138:138 -p 139:139 -p 445:445 -v `pwd`:/share dperson/samba -n -p -s "sambashare;/share;yes;no;no;shareuser" -w "WORKGROUP"'
alias acme.sh='docker run -it --rm -v ~/acme.sh:/acme.sh neilpang/acme.sh'
2021-08-18 09:42:16 +00:00
alias termbin='nc termbin.com 9999'
2022-04-02 14:03:11 +00:00
alias dnsversion='dig txt chaos version.bind'