This commit is contained in:
陆柯 2020-05-03 08:21:04 +08:00
parent 988e1f64ac
commit f640e8c5db
2 changed files with 7 additions and 2 deletions

View File

@ -4,4 +4,8 @@ defaults write com.apple.dock springboard-columns 10
defaults write com.apple.dock ResetLaunchPad -bool true defaults write com.apple.dock ResetLaunchPad -bool true
defaults write com.apple.Dock autohide-delay -float 0
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
killall Dock killall Dock

View File

@ -1,3 +1,4 @@
#!/usr/bin/expect
## Usage: expect this.sh [hostname] [port] [username] [password] ## Usage: expect this.sh [hostname] [port] [username] [password]
@ -7,12 +8,12 @@ expect {
"(yes/no)?" "(yes/no)?"
{send "yes\n";exp_continue} {send "yes\n";exp_continue}
"password:" "password:"
{send "[lindex $argv 3]\n"} {send "[lindex $argv 3]\n";exp_continue}
":~]" ":~]"
{send "su\n";exp_continue} {send "su\n";exp_continue}
"Password:" "Password:"
{send "[lindex $argv 3]\n"} {send "[lindex $argv 3]\n"}
"密码:" "密码:"
{send "[lindex $argv 3]\ncd /faronear\nll"} {send "[lindex $argv 3]\ncd /faronear\n"}
} }
interact interact