bashrc config

bashrc config

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'

PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]$PWD\[\033[1;31m\]\$\[\033[0m\] '

alias ll='ls -l'
alias lt='ls -lt'
alias lh='ls -lt | head'
alias tree2='tree -L 2'
alias tree3='tree -L 3'
alias g='gvim'
alias gg='googler'
alias m='make'
alias cdh="cd $HOME"
alias cl='clear'
alias ytdl='youtube-dl'

function cd() {

	builtin cd $@
	ls -lt

}

function cdd() {

	cd ..

}

function cd2() {

	cd ../..

}

function cd3() {

	cd ../../..
}

原文地址:https://www.cnblogs.com/movit/p/15729889.html