2022-03-26 04:48:45 +01:00
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
|
|
|
|
alias m='mtr --displaymode 1 -z'
|
|
|
|
alias n='nmap -A -T4'
|
|
|
|
alias nn='nmap -Pn --reason --packet-trace -T5'
|
|
|
|
alias mc='docker exec -i mc rcon-cli'
|
|
|
|
alias wanip='curl -sL4 ip.hetzner.com && curl -sL6 ip.hetzner.com'
|
|
|
|
alias ls='ls -lAh --color=auto'
|
2022-05-22 04:24:42 +02:00
|
|
|
alias s='ssh'
|
2022-03-26 04:48:45 +01:00
|
|
|
alias so='ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -l root'
|
2024-02-08 04:09:31 +01:00
|
|
|
alias k='kubectl'
|
2024-02-17 15:31:45 +01:00
|
|
|
alias kc='kubectl config use-context'
|
2024-02-21 20:49:06 +01:00
|
|
|
alias gs='git status'
|
|
|
|
alias gc='git commit -am'
|
2024-02-08 04:09:31 +01:00
|
|
|
|
|
|
|
alias occ='docker exec -it --user www-data nextcloud_app php occ'
|
2022-03-30 04:39:30 +02:00
|
|
|
alias mci='docker exec -i mc rcon-cli'
|
|
|
|
alias mc='docker exec mc rcon-cli'
|
2022-03-30 16:27:11 +02:00
|
|
|
|
2022-06-14 21:59:29 +02:00
|
|
|
alias sa='ssh-agent -k; eval $(ssh-agent) && ssh-add ~/.ssh/*.ed25519'
|
|
|
|
|
2023-12-03 23:13:51 +01:00
|
|
|
alias ad='ansible-vault decrypt --vault-pass-file .ansiblepass'
|
|
|
|
alias ae='ansible-vault encrypt --vault-pass-file .ansiblepass'
|
|
|
|
alias a='ansible --vault-pass-file .ansiblepass'
|
|
|
|
alias ap='ansible-playbook --vault-pass-file .ansiblepass'
|
2024-02-08 04:09:31 +01:00
|
|
|
alias ansible-folders='mkdir -p {tasks,handlers,templates,files,vars,meta} && touch {tasks,handlers,templates,files,vars,meta}/.gitkeep'
|
2023-12-03 23:13:51 +01:00
|
|
|
|
2023-12-04 15:24:10 +01:00
|
|
|
if [[ $SHELL == "/bin/bash" ]]; then
|
|
|
|
PS1="\[\033[01;31m\]\u\[\033[01;33m@\033[01;36m\]\h\[\033[01;33m \w\]\[\033[01;32m\]\n> \[\033[00m\]"
|
|
|
|
fi
|
|
|
|
|