2014年1月3日
摘要: 在~/.bashrc里加入_complete_ssh_hosts (){COMPREPLY=()cur="${COMP_WORDS[COMP_CWORD]}"comp_ssh_hosts=`cat ~/.ssh/known_hosts | \cut -f 1 -d ' ' | \sed -e s/,.*//g | \grep -v ^# | \uniq | \grep -v "\[" ;cat ~/.ssh/config | \grep "^Host " | \awk '{print $2}'`COMP 阅读全文
posted @ 2014-01-03 17:32 shengrui 阅读(373) 评论(0) 推荐(0) 编辑
摘要: https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/ 阅读全文
posted @ 2014-01-03 17:05 shengrui 阅读(460) 评论(0) 推荐(0) 编辑