我的 dotfiles

My Dotfile Repository: https://github.com/skyjia/dotfiles

兼容 macOS 与 Linux

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
██ ██ ████ ██ ██
░██ ░██ ░██░ ░░ ░██
░██ ██████ ██████ ██████ ██ ░██ █████ ██████
██████ ██░░░░██░░░██░ ░░░██░ ░██ ░██ ██░░░██ ██░░░░
██░░░██░██ ░██ ░██ ░██ ░██ ░██░███████░░█████
░██ ░██░██ ░██ ░██ ░██ ░██ ░██░██░░░░ ░░░░░██
░░██████░░██████ ░░██ ░██ ░██ ███░░██████ ██████
░░░░░░ ░░░░░░ ░░ ░░ ░░ ░░░ ░░░░░░ ░░░░░░
▓▓▓▓▓▓▓▓▓▓
░▓ about ▓ A couple of dotfiles for developers using OS X.
░▓ author ▓ Sky Jia <me@skyjia.com>
░▓ code ▓ https://github.com/skyjia/dotfiles
░▓▓▓▓▓▓▓▓▓▓
░░░░░░░░░░
bash > bash settings
fish > fish settings
gdb > GDB init
git > global git config and aliases
hg > global hg config and aliases
httpie > httpie settings
karabiner > Karabiner configuration
less > less settings
omf > oh-my-fish settings
opam > opam init
shared_profile > shared shell settings, alias, and custom prompts
spacemacs > spacemacs initialization setting and custom layers for Emacs.
tmux > terminal multiplexer with custom status bar
vim > vim settings
zsh > zshell settings, aliases, and custom prompts

Before Getting Start

It’s best to read the follwing articles before you start:

Installation

1 Install Dependencies

Homebrew & Cask

If you’re an OS X user, the best way to manage software pacakges is to use Homebrew & Cask.

a) Install Homebrew

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

b) Install brew cask

1
brew tap caskroom/cask

Refer to:

For Linux user, please try LinuxBrew instead.

GNU stow

I recommend to use GNU stow to manage dotfiles, because it’s free, portable, and lightweight.

Install stow with homebrew:

1
brew install stow

2 Clone and Apply dotfiles

1
2
git clone https://github.com/skyjia/dotfiles.git ~/dotfiles
cd ~/dotfiles && rake

If you want to apply a configuration package, try to execute following commands:

1
2
cd ~/dotfiles
stow package_dir_name

For example, apply httpie configuration package:

1
2
cd ~/dotfiles
stow httpie

3 Package Configuration

vim

Vim configuration is based on Janus. Install MacVim and Janus as followed:

1
2
3
4
5
6
7
8
9
brew cask install macvim
# install janus
# https://github.com/carlhuda/janus#installation
cd
curl -L https://bit.ly/janus-bootstrap | bash
cd ~/dotfiles
stow vim

tmux

tmux configuration is based on gpakosz/.tmux.

1
2
cd ~/dotfiles
stow tmux

spacemacs

1
2
3
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
cd ~/dotfiles
stow spacemacs

GitHub Repository: https://github.com/skyjia/dotfiles