Last active
May 13, 2019 03:42
-
-
Save suqingdong/6fc1b879817d32507b5fdcbd65082ab9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific aliases and functions | |
PS1="\[\e[0;35m\][\u@\h\[\e[33m\] \t \[\e[36m\]\w]\n\[\e[36m\]$\[\e[m\]" | |
clear | |
alias server='python -m SimpleHTTPServer 2413' | |
# alias head1=" head -1 | awk -F '\\t' '{ for(i=1;i<=NF;i++){print i\" \"\$i} }' " | |
alias head1=' head -1 | awk -F"\t" "{ for(i=1;i<=NF;i++){print i,\$i} }" ' | |
alias vi="vim" | |
alias rm="rm -i" | |
alias mkdir="mkdir -m 755 " | |
alias grep="grep --color" | |
alias duall='du -cshL .' | |
alias wcl='wc -l' | |
alias awknf="awk -F '\t' '{print NF}'" | |
alias www="cd /data/www" | |
alias cd..="cd .." | |
alias l="ll -hrt" | |
alias la="ls -a" | |
alias les="less -nS" | |
alias L='l -L' | |
alias lsu="l | grep suqingdong" | |
alias lock='chmod 555 ' | |
alias unlock='chmod 755 ' | |
export LANG="zh_CN.UTF-8" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment