我的bashrc,留而利值(不定期更新)

来源:互联网 发布:最新网络流行词2016 编辑:程序博客网 时间:2024/06/05 00:32
# .bashrc


# forbid ctrl + c and ctrl + q
stty -ixon


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


# Used to spell the wrong.


alias mikdir=mkdir


# To move files into a trash or un-remove it.


alias rmt=trash
alias rt='ll ~/.trash'
alias ur=unremove
alias ct=cleartrash


unremove()
{
    mv -i ~/.trash/$@ ./
}


trash()
{
    mv $@ ~/.trash/
}


cleartrash()
{
    rm -rf ~/.trash
    mkdir ~/.trash
}


# User specific aliases and functions
0 0