-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases.zsh
More file actions
27 lines (21 loc) · 783 Bytes
/
aliases.zsh
File metadata and controls
27 lines (21 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ~/.oh-my-zsh/custom/aliases.zsh
alias vim="nvim"
alias vi="vim -u NONE"
alias py="source .venv/bin/activate"
alias psql="PAGER='less -S' psql" # Use less -S for left/right arrows in psql output
# Change namespace used by kubectl if none is specified
alias knsp="kubectl config set-context --current --namespace"
# Stern
alias stern="stern --exclude-container='istio-proxy' --timestamps"
# Checkout master, and clear any deleted branches
dev() {
main_branch=$(git remote show origin | grep 'HEAD branch' | sed 's/.*: //')
git checkout ${main_branch}
git pull
git gone
}
# Django
alias dj="python manage.py"
alias tests="PYTHONBREAKPOINT= pytest --disable-warnings --tb=short --randomly-dont-reorganize"
# Git
alias gb='git branch --sort -committerdate --column=auto'