浏览代码

add alias p and c

pull/1/head
10sr 13 年前
父节点
当前提交
629a0fc15d
共有 1 个文件被更改,包括 3 次插入7 次删除
  1. +3
    -7
      .bashrc

+ 3
- 7
.bashrc 查看文件

@@ -69,7 +69,7 @@ alias la="ls -A"
alias lla="ls -Al"
# alias less=""
alias vl=/usr/share/vim/vimcurrent/macros/less.sh
alias em="emacs -nw; echo emacs terminated."
alias em="emacs -nw; echo Emacs terminated."
# alias apt-get="sudo apt-get"
alias aptin="apt-get install"
alias aptsearch="apt-cache search"
@@ -82,6 +82,8 @@ alias destroy="rm -rf"
alias psall="ps auxww"
alias g=git
alias q=exit
alias p="$PAGER"
alias c=cat
alias pcalc="python -i -c 'from math import *' "
alias _myreloadrc="test -f ~/.bashrc && source ~/.bashrc"
alias sudo="sudo " # use aliases through sudo
@@ -191,12 +193,6 @@ setclip(){
fi
fi
}
p(){
"$@" | $PAGER
}
c(){
"$@" | cat
}
o(){
if [ $# -eq 0 ]
then


正在加载...
取消
保存