export EDITOR=~/.local/bin/nvim.appimage export TERMINAL=/usr/bin/st export PATH=$PATH:~/.local/bin alias vi="$EDITOR" alias ya="yadm add" alias yc="yadm commit -v" alias yd="yadm diff" alias ys="yadm status" alias yup="yadm pull --rebase" alias yp="yadm push" alias todo="vi ~/Nextcloud/TODO/todo.txt" alias sysup="sudo apt update && sudo apt upgrade -y" alias k="kubectl" alias tp="ssh -L localhost:5488:emb-ofbiz-prep-ofbiz2-rds-encrypted.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon" alias tn="ssh -L localhost:5488:emb-ofbiz-nereide-ofbiz2-rds.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon" # ofbiz specific alias resetTestDb='dropdb ofbiz && createdb ofbiz && ./gradlew "ofbiz -l readers=seed,seed-initial -l delegator=test"' alias testRfid='./gradlew "ofbiz --test component=rfid --test delegator=test"' alias testIntegOFbiz='./gradlew cleanAll loadAll testIntegration' alias reducePdf="gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen \ -dNOPAUSE -dBATCH -dColorImageResolution=150 \ -sOutputFile=output.pdf" # Reboot directly to Windows # Inspired by http://askubuntu.com/questions/18170/how-to-reboot-into-windows-from-ubuntu reboot_to_windows () { windows_title=$(sudo grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2) sudo grub-reboot "$windows_title" && sudo reboot } alias windows='reboot_to_windows' ##### oh my zsh config overload # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ZSH_THEME="terminalparty" zstyle ':omz:update' mode auto # update automatically without asking # Uncomment the following line to enable command auto-correction. ENABLE_CORRECTION="true" COMPLETION_WAITING_DOTS="true" # Uncomment the following line if you want to disable marking untracked files # under VCS as dirty. This makes repository status check for large repositories # much, much faster. DISABLE_UNTRACKED_FILES_DIRTY="true" # Which plugins would you like to load? # Standard plugins can br found in $ZSH/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=(git docker kube-ps1 kubectx kubectl) source $ZSH/oh-my-zsh.sh PROMPT='$(kube_ps1)'$PROMPT