rangement alias
parent
07fc2f6b5c
commit
9966fc67c3
|
|
@ -30,9 +30,11 @@ export PATH=$HOME/.local/bin:$PATH
|
|||
alias vi="$EDITOR"
|
||||
alias r="ranger"
|
||||
alias rs="rsync -azvhP"
|
||||
alias wakeup="wakeonlan -i 192.168.1.50 58:11:22:C9:D5:B9"
|
||||
alias updatePass="cd ~/.password-store/Nrd/ && git pull --rebase && cd -"
|
||||
alias apt="sudo apt"
|
||||
|
||||
|
||||
# yadm
|
||||
alias ya="yadm add"
|
||||
alias yc="yadm commit -v"
|
||||
alias yd="yadm diff"
|
||||
|
|
@ -40,19 +42,21 @@ alias ys="yadm status"
|
|||
alias yup="yadm pull --rebase --autostash"
|
||||
alias yp="yadm pull --rebase --autostash && yadm push"
|
||||
alias yig="GIT_DIR=\$HOME/.local/share/yadm/repo.git GIT_WORK_TREE=\$HOME tig"
|
||||
alias sa="ssh-add"
|
||||
alias todo="vi ~/Nextcloud/TODO/todo.txt"
|
||||
alias wiki="vi ~/Nextcloud/Notes/index.md"
|
||||
|
||||
# system
|
||||
alias sysup="sudo apt update && sudo apt upgrade -y"
|
||||
alias g="./gradlew"
|
||||
|
||||
# git
|
||||
alias gupa='git pull --rebase --autostash'
|
||||
alias gs='git switch'
|
||||
|
||||
# kube
|
||||
alias k="kubectl"
|
||||
alias kns="kubens"
|
||||
alias kctx="kubectx"
|
||||
alias fluxUp="flux reconcile source git flux-system"
|
||||
alias kprod="export AWS_PROFILE='production' && aws sso login && aws eks update-kubeconfig --region eu-west-1 --name rfidprod-production && kubens prod && kubectl get po"
|
||||
alias kstage="export AWS_PROFILE='staging' && aws sso login && aws eks update-kubeconfig --region eu-west-1 --name rfidprod-staging && kubens preprod && kubectl get po"
|
||||
alias gupa='git pull --rebase --autostash'
|
||||
alias gs='git switch'
|
||||
|
||||
|
||||
# Open a port forward session to a remote Kubernetes deployment
|
||||
|
|
@ -75,6 +79,7 @@ alias tprodMaison='ssh -A -L localhost:5488:localhost:5495 nereide@naxos.nereide
|
|||
alias tprodBureau="ssh -v -p 5422 -L localhost:5488:rfidprod-production.cluster-cppfo25bfalv.eu-west-1.rds.amazonaws.com:5432 ofbiz@pp-sftp-technical.decathlon.net"
|
||||
|
||||
# ofbiz specific
|
||||
alias g="./gradlew"
|
||||
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'
|
||||
|
|
@ -104,19 +109,3 @@ session_name="gil"
|
|||
|
||||
git config --global --add --bool push.autoSetupRemote true
|
||||
|
||||
|
||||
## 1. First you check if a tmux session exists with a given name.
|
||||
#tmux has-session -t=$session_name 2> /dev/null
|
||||
#
|
||||
## 2. Create the session if it doesn't exists.
|
||||
#if [[ $? -ne 0 ]]; then
|
||||
# TMUX='' tmux new-session -d -s "$session_name"
|
||||
#fi
|
||||
#
|
||||
## 3. Attach if outside of tmux, switch if you're in tmux.
|
||||
#if [[ -z "$TMUX" ]]; then
|
||||
# tmux attach -t "$session_name"
|
||||
#else
|
||||
# tmux switch-client -t "$session_name"
|
||||
#fi
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in New Issue