工作环境配置纪录

最近换了台MacBook,工作环境全部需要重新配置。为方便以后查询,特此记录。

1 Xcode

看家工具。

1.1 Alcatraz

地址:http://alcatraz.io/

安装:curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh

安装完成后,必装的插件有:

1.2 XVim

vim指法的效率无需多言。

2 Terminal

2.1 iTerm

地址:http://www.iterm2.com/

2.2 zsh

1 chsh -s /bin/zsh

2 安装oh my zsh

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

真的比bash好用太多。

2.3 Homebrew

Mac系统里缺了很多工具,可以使用这个进行方便的安装。

地址:http://brew.sh/

安装:ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

工具列表:brew install wget

3 Git

sourcetree

地址: https://www.sourcetreeapp.com/

免费好用的git客户端。软件免费,但是不注册的话有试用期。

注册地址:https://id.atlassian.com/signup

许可证生成地址:https://my.atlassian.com/license/sourcetree

也可以使用我自己的许可证地址:license

4 Emacs

最强大的编辑器之一,org mode强大好用。

地址:http://emacsformacosx.com/

默认配置:https://github.com/purcell/emacs.d

安装:git clone https://github.com/purcell/emacs.d.git ~/.emacs.d

重新打开emacs,一切都会自动安装。

下面是几个好用的插件,包括vim、speedbar和tabbar,粘贴在init-local.el里,拷贝到~/.emacs.d/lisp/init-local.el里。

;; vim
(require 'evil)
(evil-mode 1)

;;speedbar
(require 'sr-speedbar)

(setq speedbar-show-unknown-files t)
(setq speedbar-use-images nil)
(setq sr-speedbar-width 30)
(setq sr-speedbar-right-side nil)

(global-set-key (kbd "<f5>") (lambda()
                               (interactive)
                               (sr-speedbar-toggle)))

;;tabbar
(require 'tabbar)
(tabbar-mode 1)
(global-set-key [(meta j)] 'tabbar-forward)
(global-set-key [(meta k)] 'tabbar-backward)
;; close default tabs,and move all files into one group
(setq tabbar-buffer-list-function
      (lambda ()
        (remove-if
         (lambda(buffer)
           (find (aref (buffer-name buffer) 0) " *"))
         (buffer-list))))
(setq tabbar-buffer-groups-function
      (lambda()(list "All")))
(set-face-attribute 'tabbar-button nil)

;;set tabbar's backgroud color
(set-face-attribute 'tabbar-default nil
                    :background "gray"
                    :foreground "gray30")
(set-face-attribute 'tabbar-selected nil
                    :inherit 'tabbar-default
                    :background "green"
                    :box '(:line-width 3 :color "DarkGoldenrod") )
(set-face-attribute 'tabbar-unselected nil
                    :inherit 'tabbar-default
                    :box '(:line-width 3 :color "gray"))

;; USEFUL: set tabbar's separator gap
(custom-set-variables '(tabbar-separator (quote (1.5))))

(provide 'init-local)

5 其他

QQ FireFox Foxmail sougou 坚果云

 

你可能感兴趣的:(工作环境配置纪录)