diff --git a/adjust-mac-launchpad.sh b/adjust-mac-launchpad.sh index 1daaee0..ec184ad 100644 --- a/adjust-mac-launchpad.sh +++ b/adjust-mac-launchpad.sh @@ -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 autohide-delay -float 0 + +defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES + killall Dock diff --git a/ssh-expect.sh b/ssh-expect.sh index 0fbf27e..685192e 100755 --- a/ssh-expect.sh +++ b/ssh-expect.sh @@ -1,3 +1,4 @@ +#!/usr/bin/expect ## Usage: expect this.sh [hostname] [port] [username] [password] @@ -7,12 +8,12 @@ expect { "(yes/no)?" {send "yes\n";exp_continue} "password:" - {send "[lindex $argv 3]\n"} + {send "[lindex $argv 3]\n";exp_continue} ":~]" {send "su\n";exp_continue} "Password:" {send "[lindex $argv 3]\n"} "密码:" - {send "[lindex $argv 3]\ncd /faronear\nll"} + {send "[lindex $argv 3]\ncd /faronear\n"} } interact