-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
45 lines (36 loc) · 966 Bytes
/
bashrc
File metadata and controls
45 lines (36 loc) · 966 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
38
39
40
41
42
43
44
45
PATH="$PATH:~/bin"
PS1="\[\033[01;32m\]-> \[\033[00m\]\[\033[01;34m\]\w\[\033[00m\]\$ "
HISTCONTROL=ignoreboth
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
export PATH=$PATH:/usr/local/go/bin:~/.local/bin:~/.krew/bin
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias kub="kubectl"
alias kw="watch kubectl"
alias kwp="watch kubectl po"
alias ctx="kubectl ctx"
alias ns="kubectl ns"
alias g="git"
alias vimf="vim \$(fzf)"
# git aliases
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
function gitsync() {
message=$1
if [ -z "$message" ]; then
echo "Please provide commit message"
return 1
fi
git pull
git add .
git commit -m "$message"
git push
}