我的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
# 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
相关文章推荐
- linux 常用shell
- bash: ./configure: /bin/sh^M: 坏的解释器: 没有那个文件或目录
- wdcp的环境搭建shell脚本分析--lanmp.sh---lib/common.conf
- 浅谈获取shell中函数的返回值
- bash下的特殊符号与通配符
- linux 通过shell操作串口
- Linux shell dialog详解
- linux下shell脚本编程2
- linux下shell脚本编程2
- shell学习二十四天----提取开头或结尾数行
- shell基本
- Python下调用Linux的Shell命令
- wdcp的环境搭建shell脚本分析--install.sh
- zorka源码解读之通过beanshell进行插桩的流程
- zorka源码解读之Beanshell与zorka的交互实现
- Mac OS X10.9.5bash基本命令失效后的修复
- 一个发送电子邮件的bash脚本
- JAVA执行bat文件和shell脚本文件
- PowerShell批量修改AD用户密码属性
- PowerShell批量修改AD用户密码属性