A collection of configuration files for the typical console programs bash, vim, screen, tmux, and misc. Based on Kian Meng
Please BACKUP your existing dot files before you clone the repo. The safest way is to create a fresh new user account to try it out.
Make sure you have Rubygems installed. (Refer the guide)
Paste the command below to your terminal, and hit <ENTER>
$ sudo apt-get install curl
$ bash <(curl -s https://raw.githubusercontent.com/jslim89/dotfiles/ubuntu/bin/build.sh)
You must have Homebrew installed.
Paste the command below to your terminal, and hit <ENTER>
$ eval "$(/opt/homebrew/bin/brew shellenv)"
$ bash <(curl -s https://raw.githubusercontent.com/jslim89/dotfiles/macOS-zsh/bin/build.sh)
$ su - # login as root
$ apt-get install git rubygems exuberant-ctags xclip mercurial vim tmux screen ack-grep
$ gem install homesick
$ exit # logout from root
$ `which homesick` clone https://github.com/jslim89/dotfiles.git
$ `which homesick` symlink dotfiles
$ cd ~/.homesick/repos/dotfiles
$ git checkout ubuntu # temporary use ubuntu branch first
$ git submodule update --init --recursive
$ su - # login as root
$ yum install git ack rubygems ctags
$ gem install homesick
$ exit # exit from root user
$ `which homesick` clone https://github.com/jslim89/dotfiles.git
$ `which homesick` symlink dotfiles
$ cd ~/.homesick/repos/dotfiles
$ git checkout ubuntu # temporary use ubuntu branch first
$ git submodule update --init --recursive
For server use, keep the minimal settings
$ bash <(curl -s https://raw.githubusercontent.com/jslim89/dotfiles/server-deb/bin/build.sh)
For server use, keep the minimal settings
$ bash <(curl -s https://raw.githubusercontent.com/jslim89/dotfiles/server-rpm/bin/build.sh)
If you want to add certain program to environment variable, just add to ~/bin
$ cd ~/bin
$ ln -s /path/to/your/program
Shortcuts | Description |
---|---|
, | Leader key |
jj | Exist from insert mode into normal mode. |
,p | Toggle between Paste and normal mode. |
,! | Prettify the source code js/css related. |
C-j | Move up to top window. |
C-k | Move down to down window. |
C-h | Move to left window. |
C-l | Move to right window. |
Shortcuts | Description |
---|---|
` | Prefix key (backtick) |
`` | Type backtick in console. |
Alt+j | Switch to left tab. |
Alt+k | Switch to right tab. |
C-j | Move up to top window. |
C-k | Move down to down window. |
C-h | Move to left window. |
C-l | Move to right window. |
`\ | Split window vertically. |
`- | Split window horizontally. |
`c | New window. |
`b | break current split into new window. |
`j | Join other window to current window. |
`s | Swap pane |
`x | Kill current pane. |
`n | New session |
`d | Detech current session |
`K | Kill current session |
`[ | Enter scroll mode (use v to highlight, y to yank) |
`C-j | Search sessions |
`/ | Split a new window and man page for cmd. |
`~ | Split a new window and run htop. |
`r | Reload your .tmux.conf config file. |
S-Left | Resize window left (2 steps) |
S-Right | Resize window right (2 steps) |
S-Down | Resize window down (1 steps) |
S-Up | Resize window up (1 steps) |
C-Left | Resize window left (10 steps) |
C-Right | Resize window right (10 steps) |
C-Down | Resize window down (5 steps) |
C-Up | Resize window up (5 steps) |
Reference: https://thoughtbot.com/upcase/tmux