-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmac_profile
31 lines (23 loc) · 943 Bytes
/
mac_profile
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
#~/.bash_profile
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# For long history file
# https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows
export HISTFILESIZE=1000000
export HISTSIZE=1000000
export SHELL_SESSION_HISTORY=0
# Avoid duplicates
export HISTCONTROL=ignoredups:erasedups
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend
# After each command, append to the history file and reread it
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"
# Different aliases
alias u1='ssh -p 2222 [email protected]'
alias profile='cat ~/.bash_profile'
# k8s
alias k='kubectl'
alias k-ccc='kubectl config current-context'
alias k-cuc='kubectl config use-context'
alias k-gaa='kubectl get all --all-namespaces'