文章

bashrc

~/.bashrc 或者 ~/.bash_profile

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export PS1='\[\033[01;36m\][\u@\h\[\033[01;32m\] \W\[\033[01;36m\]]\[\033[01;32m\]\$\[\033[00m\] '
export CLICOLOR=1
export LSCOLORS=ExGxFxdaCxDaDahbadache

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ll='ls --color=auto -lh --time-style=long-iso'
alias la='ls --color=auto -la --time-style=long-iso'

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

source <(kubectl completion bash)
source <(helm completion bash)

[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
# history 添加执行时间
HISTTIMEFORMAT="%F %T "
本文由作者按照 CC BY 4.0 进行授权