-
-
Save echo-devnull/3b792167e909fb99258ee7428b6b8bc9 to your computer and use it in GitHub Desktop.
Creating autocompletion and aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $commands[kubectl] ]; then | |
source <(kubectl completion zsh) | |
fi | |
if [ $commands[kops] ]; then | |
source <(kops completion zsh) | |
fi | |
# Stop and Remove all containers | |
alias drmf='docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)' | |
# Remove all images | |
dri() { docker rmi $(docker images -q); } | |
alias b='byobu -S default' | |
alias pixbackup='rsync -Pav --exclude "Export/" ~/Pictures/. mark@exeter.maas-martin.nl:/mnt/data1/pix/.' | |
alias allbackup='rdiff-backup --include-globbing-filelist ~/.rdiff.include --exclude /home/mark /home/mark mark@exeter.maas-martin.nl::/opt/laptopbackups/rdiff-backups/tribble' | |
alias patchall='sudo apt update && sudo apt dist-upgrade && sudo apt -y autoremove && sudo apt -y autoclean' | |
alias k8spass="awk '/- name.*cloud$/ { print; user[NR+4]; pass[NR+5]; next }; NR in pass; NR in user' ~/.kube/config" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment