ubuntu用户自定义的命令alias永久生效
cd ~
vi .bash_profile
alias ll=‘ls -ltr’
. .bash_profile
ps:写在.bashrc终端断开就没了
以下是我的alias配置:
alias gmaster=“git checkout master”
alias gdev=“git checkout dev”
alias gbra=“git branch”
alias gp=“git pull”
alias gc=“git commit”
alias egrep=‘egrep --color=auto’
alias fgrep=‘fgrep --color=auto’
alias grep=‘grep --color=auto’
alias l.=‘ls -d .* --color=auto’
alias ll=‘ls -l --color=auto’
alias ls=‘ls --color=auto’
alias running_services=‘systemctl list-units --type=service --state=running’
alias vi=‘vim’
alias which=‘alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde’