Skip to main content

term

tree

brew install tree

然而在使用 tree 的时候,macOS 会显示中文为乱码

在 macOS 终端中应添加参数-N

tree -N

来代替tree命令

macOS 文件用 vim 打开

Automator -> 应用程序 -> 运行 AppleScript -> 保存为vim.app

vim.app

on run {input}
set the_path to POSIX path of input
set cmd to "vim " & quoted form of the_path
tell application "System Events" to set terminalIsRunning to exists application process "Terminal"
tell application "Terminal"
activate
if terminalIsRunning is true then
do script with command cmd
else
do script with command cmd in window 1
end if
end tell
end run

vim 使用系统剪贴板

vim .vimrc
# START `.vimrc`
set clipboard+=unnamed
# END `.vimrc`
sudo rm /usr/bin/vim
brew install vim

https://coderwall.com/p/fv7r0q/fix-vim-after-upgrading-to-yosemite