您的位置:首页 > 运维架构 > Shell

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

2015-06-23 17:40 288 查看
# .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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: