#!/bin/sh environment_python(){ yum -y install python echo "python OK " } environment_git(){ yum -y install git echo "git OK" } get_from_github(){ cd /root/ git clone https://github.com/andreafrancia/trash-cli.git echo "Download trash-cli OK" } install_trash(){ echo "get to trash-cli " cd /root/trash-cli echo "Now in trash-cli" python setup.py install echo "python install trash-cli OK" } alias_rm(){ alias rm=‘trash-put‘ echo "alias rm=‘trash-put‘" source /etc/profile echo "alias OK echo_to_profile OK" } environment_python environment_git get_from_github install_trash alias_rm
本文出自 “漫漫SQL路......” 博客,请务必保留此出处http://l0vesql.blog.51cto.com/4159433/1940683
巧用第三方开源工具trash-git放置linux误删除文件
原文地址:http://l0vesql.blog.51cto.com/4159433/1940683