Dotfiles
This project contains configuration files for command-line tools.
Requirements
This installation provides defaults for:
You might want to install Homebrew, and then issue the following commands:
brew tap homebrew/binary
-
brew install jsl
(required by the javaScriptLint.vim plugin) -
brew install ctags
(required by the Tagbar vim plugin) -
brew install reattach-to-user-namespace
(required to be able to copy text from tmux to the OS X pasteboard)
For maximum compatibility with the vim-airline plugin, you might want to install the patched version of DejaVu Sans Mono.
Installation
- Install requirements as described in the next section.
- Clone the repo from Github into a hidden folder named .dotfiles:
cd ~
git clone git@github.com:akosma/dotfiles.git .dotfiles
cd .dotfiles
- Run the install.sh folder to create symlinks and clone plugins in the
~/.janus
folder:./install.sh
Features
These configuration files provide the following features, among many others:
- In zsh:
- Custom prompt with more information and with visual contrast.
- The
ascstats
command shows statistics about number of words in the current Asciidoc files. - The
updateall
command updates of Homebrew, janus, and these dotfiles to the latest versions. - The
gitsvnpush
command synchronises a local Git repo with a remote Subversion repository. - Custom output for the
git log
command. - The
fixopenwith
command solves a common problem in OS X.
- In tmux:
- [SHIFT + left arrow] and [SHIFT + right arrow] switch windows to the next (or previous.)
- [SHIFT + down arrow] creates new windows in the current session.
- Battery level displayed in the status line.
- Possible to copy text back and forth using the standard OS X
pasteboard (thanks to
reattach-to-user-namespace
.)
- In Vim / MacVim:
- [F5] opens Gundo at the left.
- [F8] opens Tagbar at the right.
- [F6] removes whitespace from the current buffer.
- [CTRL + N] toggles the NERDTree at the left.
- [CTRL + T] and also [CMD + T] in MacVim open the CtrlP plugin window.
-
zz
centers the current line in the middle of the screen in normal mode. -
<Leader>+json
formats the current JSON on the editor for readability. -
<Leader>+PR
toggles MacVim in a "presentation mode" with bigger fonts, for demos and teaching. -
ctags
syntax definitions for Asciidoc, Makefiles, Markdown and Objective-C.
Custom configuration
If you want to add your own configuration to zsh and tmux, add it to the
files named .local_bash_profile
and .local_tmux.conf
in the
.dotfiles
folder; the contents of these two files will be loaded
automatically at the end of the respective configuration files.