Không có mô tả

Weiyi Lou 37de8a69aa Add zsh completion caching 10 năm trước cách đây
ack 0310a09947 add `.ackrc` 12 năm trước cách đây
bin 5169e72eed Add ack/ag completions, change tmuxinator completion 10 năm trước cách đây
git dc0e1f63bc Add external file updater 10 năm trước cách đây
shell 37de8a69aa Add zsh completion caching 10 năm trước cách đây
tmux 90e261fe76 Re-add solarized tmux colours file from github 10 năm trước cách đây
vim fa7326e782 Add coloured manpages to external files, Add misc.sh 10 năm trước cách đây
vimperator dc9eb02bde Revert vimperator to auto-fade flash messages 10 năm trước cách đây
.gitignore 8b0e3887db Fix issues with nvim config linking 10 năm trước cách đây
.gitmodules ed495519dd Remove oh-my-zsh 10 năm trước cách đây
Makefile 5998c8f799 Revert vim plugin install simplification 10 năm trước cách đây
README.md 1cbab22714 Initial migration of shell config 10 năm trước cách đây
install 3bf73676ee Add `ll` alias, use `/usr/bin/env` in installer 10 năm trước cách đây

README.md

dotfiles

Configuration files for:

  • Bash (3.2+) and Zsh (4.3.17+)
  • Vim (7.4+) or NeoVim
  • Vimperator (3.8+)
  • Tmux (1.8+)
  • Other bits and pieces

Heavy preference for vim-like bindings.

Installation

Clone to a home folder and run make install or ./install.

Restart the terminal session.

Recommended

Usage

Below is a non-exhaustive list of dotfiles usage.

Bash/Zsh

  • Case-insensitive completion.
  • The excellent z and v commands:
    • z for folder jumping: z regex = cd /path/with/regex.
    • v for file editing: v regex = vim /path/with/regex.
  • Multi-line shell prompt that displays Git repo info and job count.
  • Mostly-Mnemonic Git shortcuts: gs = git status, gd = git diff, etc.
  • SSH agent automated - attempts to load identities with ssh-add on start.
  • Machine-specific settings can be contained in .bashlocal and .zshlocal.

Vim

Space is the <Leader>.

  • <Leader>w saves.
  • <Leader>q closes files.
  • <Leader>l lists loaded buffers and lets you jump to them by number.
  • <Leader>p fuzzy-finds files.
  • <Leader>f fuzzy-finds functions in the current file.
  • <Leader>t opens a function/variable list for the current file.
  • <Leader>n toggles line numbers.
  • <Leader>c finds VCS conflict markers.
  • Additional text objects exist (see 'Text Objects' in plugins.vim).
  • Saving .pandoc files also outputs .docx versions.
  • :Goyo for distraction-free writing.
  • :Dark, :Light and :Neon colour schemes available.

Tmux

<C-a> = Ctrl-a = the tmux prefix.

  • <C-a> + [vi motion] moves around panes.
  • <C-a> + <C-[vi motion]> moves around windows.
  • Alt/Meta + number moves to window number (1-10).
  • <C-a> + - cuts a pane horizontally,
  • <C-a> + \ cuts a pane vertically (think |).
  • <C-a> + s starts synchronized panes.
  • <C-a><C-s> swaps between sessions.
  • Mouse support works for selecting and resizing panes/windows.

Vimperator

Apart from the default Vimperator goodness e.g.

  • / searches like vim.
  • f and F follow links on this tab/in a new tab.
  • et cetera...

These dotfiles provide the following:

  • h and l - move left and right between tabs.
  • j and k - scroll the page down and up.
  • H, J, K, L - scroll the page slowly (left, down, up, right).
  • <C-h> and <C-l> - relocate a tab left and right.