📄 install
字号:
#!/bin/sh#qd's installer. Writen by yxp in 2002-04-11 started. setup_content=/etc/qdirhistory_dir=$setup_content/history_dirbin_content=/usr/local/sbinprof_content=/etc/profile.dsetup(){ #check if [ -r $history_dir ] then echo -n "Your computer has $history_dir, overwrite it(y\Y or q\Q or n\N)? " while read choice do if [ "$choice" = "y" -o "$choice" = "Y" ] then break fi if [ "$choice" = "q" -o "$choice" = "Q" ] then echo "Nothing to do!" exit 1 fi if [ "$choice" = "n" -o "$choice" = "N" ] then cp -f ./qd $bin_content/ cp -f ./qd.sh $prof_content/ echo "install qd OK, but do not overwrite $history_dir!" echo "version is 1.00" exit 1 fi echo -n "your computer has $history_dir, overwrite it(y\Y or q\Q or n\N)? " done fi if [ -r $setup_content ] then : else mkdir $setup_content fi cp -f ./qd $bin_content/ cp -f ./history_dir $setup_content/ cp -f ./qd.sh $prof_content/}delete(){ [ -r $history_dir ] || [ -r $bin_content ] || \ ! echo "Your computer has not qd!" || ! echo "Nothing to do!" echo -n "Are you sure to delete qd(y\Y or q\Q)? " while read choice do if [ "$choice" = "y" -o "$choice" = "Y" ] then break fi if [ "$choice" = "q" -o "$choice" = "Q" ] then echo "Nothing to do!" exit 1 fi echo -n "Are you sure to delete qd(y\Y or q\Q)? " done rm -rf $setup_content rm -f $bin_conten/qd rm -f $prof_content/qd.sh}usage(){ echo "<install> then install qd on your computer." echo "<install del> then delete qd on your computer." exit 1}if [ $# -eq 0 ]then setup echo "install qd OK!" echo "version is 1.00" exit 1fi if [ $# -gt 1 ]then usagefi case $1 indel) delete echo "have delete qd OK!" ;;*) usage ;;esac
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -