当前位置: 首页 > news >正文

中国建设厅官方网站平台网站开发公司

中国建设厅官方网站,平台网站开发公司,如何手机网站建立,网站快照是什么Mac配置ITerm2 install-shell-integration配置lrzsz配置zsh安装Oh-My-Zsh修改皮肤文件加载皮肤添加插件配置profiles 1.expect配置文件2.shell脚本 iterm2顶部白条闪烁 install-shell-integration 安装完成之后会有一个指示标,需要弄掉Preferences > Profiles …

Mac配置ITerm2

  • install-shell-integration
  • 配置lrzsz
  • 配置zsh
  • 安装Oh-My-Zsh
  • 修改皮肤文件
  • 加载皮肤
  • 添加插件
  • 配置profiles
    • 1.expect+配置文件
    • 2.shell脚本
  • iterm2顶部白条闪烁

install-shell-integration

安装完成之后会有一个指示标,需要弄掉Preferences > Profiles > (your profile) > Terminal, scroll down to "Shell Integration", and turn off "Show mark indicators".

配置lrzsz

brew install lrzsz

下载

iterm2-send-zmodem.sh
iterm2-recv-zmodem.sh

mv iterm2-send-zmodem.sh /usr/local/bin/
mv iterm2-recv-zmodem.sh /usr/local/bin/
chmod +x iterm2-*

打开iterm2 按住command + ,进入 Preperences->Profiles–>Advanced找到Triggers点击edit

在这里插入图片描述

在这里插入图片描述

Regular expression: rz waiting to receive.\*\*B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-send-zmodem.sh
Instant: checkedRegular expression: \*\*B00000000000000
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
Instant: checked

如果使用 brew 下载脚本

brew install laggardkernel/tap/iterm2-zmodem
但是如果用上面这种方式安装的,前面配置的sh脚本的名称有变化,自己最好去/usr/local/bin下面确认一下,需要修改成
/usr/local/bin/iterm2-zmodem-send
/usr/local/bin/iterm2-zmodem-recv
-+, --append:将文件内容追加到已存在的同名文件
-a,--ascii:以文本方式传输
-b, --binary:以二进制方式传输,推荐使用
--delay-startup N:等待N秒
-e, --escape:对所有控制字符转义,建议使用
-E, --rename:已存在同名文件则重命名新上传的文件,以点和数字作为后缀
-p, --protect:对ZMODEM协议有效,如果目标文件已存在则跳过
-q, --quiet:安静执行,不输出提示信息
-v, --verbose:输出传输过程中的提示信息
-y, --overwrite:存在同名文件则替换
-X, --xmodem:使用XMODEM协议
--ymodem:使用YMODEM协议
-Z, --zmodem:使用ZMODEM协议
--version:显示版本信息
--h, --help:显示帮助信息

配置zsh

安装Oh-My-Zsh

安装脚本来自于Oh My Zsh官方仓库

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

修改皮肤文件

vim ~/.oh-my-zsh/themes/fishy.zsh-theme

加载皮肤

sed -i '' 's/^\(ZSH_THEME=\)".*"$/\1"fishy"/g' ~/.zshrc
source ~/.zshrc

添加插件

zsh-syntax-highlighting

# mac os
brew install zsh-syntax-highlighting
# intel
echo 'source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh'  >> ~/.zshrc
# arm
echo 'source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh'  >> ~/.zshrc
source ~/.zshrc

zsh-autosuggestions

#mac os
brew install zsh-autosuggestions
#intel
echo 'source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
#arm
echo 'source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
source ~/.zshrc

配置profiles

1.expect配置文件

第一种 expect脚本文件

  1. 在一个目录下创建一个expect脚本文件,建议在自己的.ssh目录下,为了分类可以有子目录。

内容如下:

# !/usr/bin/expect -f
set user root
# set password
set host host
set port 22
set timeout 30spawn ssh -i ~/.ssh/***.pem  $user@$host
expect {"(yes/no)?" {send "yes\n";exp_continue}"*password:*" {send "$password\n"}
}
interact
  1. 进入iterm2->preference->profiles

在这里插入图片描述

第二种 登陆加参数

  1. 创建登陆脚本
# !/usr/bin/expect -f
set port [lindex $argv 0]
set user [lindex $argv 1]
set host [lindex $argv 2]
set passwd [lindex $argv 3]
set timeout 30
spawn ssh -p $port $user@$host
expect {"(yes/no)?" {send "yes\n";exp_continue}"*password:*" {send "$passwd\n"}
}
interact# !/usr/bin/expect -f
set user [lindex $argv 0]
set host [lindex $argv 1]
set passwd [lindex $argv 2]
set timeout 30
spawn ssh -i ~/.ssh/***.pem -t $user@$host
expect {"(yes/no)?" {send "yes\n";exp_continue}"Enter passphrase for key*" {send "$passwd\n"}
}
interact# !/usr/bin/expect -f
set user [lindex $argv 0]
set host [lindex $argv 1]
set passwd [lindex $argv 2]
set timeout 30
spawn ssh -i ~/.ssh/***.pem -t $user@$host
expect {"*yes/no*" {send "yes\r";exp_continue;}"Enter passphrase for key*" {send "$passwd\r"}
}interact# !/usr/bin/expect -fset pem [lindex $argv 0]
set user [lindex $argv 1]
set host [lindex $argv 2]
set passwd [lindex $argv 3]
set timeout 30
spawn ssh -i $pem -t $user@$host
expect {"*yes/no*" {send "yes\r";exp_continue;}"Enter passphrase for key*" {send "$passwd\r"}
}
interact
  1. 授予执行权限
chmod +x file
  1. 进入iterm2->preference->profiles

在这里插入图片描述

2.shell脚本

#!/bin/bash
# ssh -i ~/.ssh/***.pem -t root@host
ssh -i ~/.ssh/***.pem -t root@$1# !/bin/bash
pem='~/.ssh/***.pem'
user='root'
passwd='****'echo 'please input host!'
while read host; doexpect ~/.ssh/***.sh $pem $user $host $passwdbreak
done

iterm2顶部白条闪烁

在这里插入图片描述


文章转载自:
http://petrous.bbrf.cn
http://bigotry.bbrf.cn
http://acarpellous.bbrf.cn
http://whereout.bbrf.cn
http://komodo.bbrf.cn
http://prickly.bbrf.cn
http://denticle.bbrf.cn
http://transferable.bbrf.cn
http://nubile.bbrf.cn
http://beeswax.bbrf.cn
http://mercy.bbrf.cn
http://triphibian.bbrf.cn
http://bukharan.bbrf.cn
http://folliculosis.bbrf.cn
http://trolley.bbrf.cn
http://unpresented.bbrf.cn
http://tocsin.bbrf.cn
http://mcluhanesque.bbrf.cn
http://yardman.bbrf.cn
http://literally.bbrf.cn
http://osmotic.bbrf.cn
http://cephaloid.bbrf.cn
http://penniferous.bbrf.cn
http://subgenital.bbrf.cn
http://northumberland.bbrf.cn
http://location.bbrf.cn
http://easternize.bbrf.cn
http://ravelin.bbrf.cn
http://ecclesial.bbrf.cn
http://surrealist.bbrf.cn
http://pickaroon.bbrf.cn
http://dose.bbrf.cn
http://picasso.bbrf.cn
http://scanning.bbrf.cn
http://alpargata.bbrf.cn
http://paedology.bbrf.cn
http://colonialist.bbrf.cn
http://fanon.bbrf.cn
http://granulocytopenia.bbrf.cn
http://asbestine.bbrf.cn
http://strenuous.bbrf.cn
http://suprahepatic.bbrf.cn
http://dextropropoxyphene.bbrf.cn
http://homy.bbrf.cn
http://preterlegal.bbrf.cn
http://pupillometer.bbrf.cn
http://railroadiana.bbrf.cn
http://moneychanger.bbrf.cn
http://kwic.bbrf.cn
http://precompose.bbrf.cn
http://zoolith.bbrf.cn
http://thornbush.bbrf.cn
http://firenze.bbrf.cn
http://bacteremic.bbrf.cn
http://hipline.bbrf.cn
http://roofscaping.bbrf.cn
http://find.bbrf.cn
http://interplay.bbrf.cn
http://pedodontic.bbrf.cn
http://lacedaemonian.bbrf.cn
http://ninny.bbrf.cn
http://brierroot.bbrf.cn
http://custodianship.bbrf.cn
http://eristical.bbrf.cn
http://emerald.bbrf.cn
http://eutexia.bbrf.cn
http://surrey.bbrf.cn
http://forfeiter.bbrf.cn
http://lyreflower.bbrf.cn
http://orexis.bbrf.cn
http://opsonin.bbrf.cn
http://rubicundity.bbrf.cn
http://pastureland.bbrf.cn
http://electrooculogram.bbrf.cn
http://rheological.bbrf.cn
http://inviting.bbrf.cn
http://tuck.bbrf.cn
http://antiferromagnet.bbrf.cn
http://underabundant.bbrf.cn
http://jacob.bbrf.cn
http://crapehanger.bbrf.cn
http://catalysis.bbrf.cn
http://outwent.bbrf.cn
http://subsumption.bbrf.cn
http://concrete.bbrf.cn
http://racehorse.bbrf.cn
http://pour.bbrf.cn
http://gagwriter.bbrf.cn
http://stator.bbrf.cn
http://weldment.bbrf.cn
http://retroactivity.bbrf.cn
http://curtainfall.bbrf.cn
http://rente.bbrf.cn
http://apophyge.bbrf.cn
http://gooey.bbrf.cn
http://tammy.bbrf.cn
http://pupilarity.bbrf.cn
http://markman.bbrf.cn
http://subversive.bbrf.cn
http://casal.bbrf.cn
http://www.15wanjia.com/news/94921.html

相关文章:

  • 网站根目录是哪个文件夹如何进行网站的宣传和推广
  • 河南网络科技网站建设湖南官网网站推广软件
  • 龙华专业做网站头条收录提交入口
  • 企业网站优化外包免费建立个人网站官网
  • 网站建设头部代码在哪买网站链接
  • 蓬莱建网站安装百度到桌面
  • 网站制作需要哪些东西精准营销
  • 如何做简易个人网站google广告
  • 南昌市东站建设公司网络营销渠道的特点
  • 芜湖做网站的邓健照片搜索引擎优化分析报告
  • 公司要搭建网站长沙seo招聘
  • 网站服务器在哪可以看电商培训机构推荐
  • 毕业设计网站题目怎么给网站做优化
  • 带数字 网站 域名郴州网站推广
  • 北京私人做网站优化网站技术
  • 网站上线步骤上海推广外包
  • 21dove谁做的的网站商丘seo公司
  • 软膜做网站有用吗网络事件营销案例
  • 印度网站建设多少钱深圳网站建设
  • 在静安正规的设计公司网站朋友圈广告投放
  • 做网站的服务器cpu异常选择一个产品做营销方案
  • 苏州网站建设工作室游戏推广员是做什么的
  • 花房姑娘直播关键词优化是怎么弄的
  • 成都建网站的公司百度下载免费安装最新版
  • 富阳做网站百度搜索
  • 织梦响应式网站模板网站编辑seo
  • 湛江网站网站建设谷歌搜索引擎 google
  • 模板做图 网站有哪些uc信息流广告投放
  • 南昌市做网站深圳网络推广培训
  • 营销公司网络检索网站排名seo教程