-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
37 lines (28 loc) · 790 Bytes
/
.bashrc
File metadata and controls
37 lines (28 loc) · 790 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
28
29
30
31
32
33
34
35
36
37
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
function kns() {
kubectl config set-context $(kubectl config current-context) --namespace=$1
}
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
export PYTHONDONTWRITEBYTECODE=1
alias k="kubectl"
alias kps="kubectl get pods"
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias gco='git checkout '
alias ll='ls -lagh'
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
export HISTFILESIZE=
export HISTSIZE=