This project contains configuration files for various command-line tools.
This installation provides defaults for:
You might want to install Homebrew, and then issue the following commands:
brew install vim(this installation requires the Vim editor as provided by Homebrew, and will not work properly with the Vim bundled by default with macOS, because of the
brew install node
brew install ctags(required by the Tagbar vim plugin)
npm install jshint -g(required by the JSHint vim plugin)
mkdir -p ~/.vim/autoload ~/.vim/bundle && \ curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
- Install requirements as described in the previous section.
- Clone the repo from Github into a hidden folder named .dotfiles:
git clone firstname.lastname@example.org:akosma/dotfiles.git .dotfiles
- Run the install.sh folder to create symlinks and clone plugins in the
These configuration files provide the following features, among many others:
- In zsh:
- Custom prompt with more information and with visual contrast.
ascstatscommand shows statistics about number of words in the current Asciidoc files.
updateallcommand updates of Homebrew, and these dotfiles to the latest versions.
gitsvnpushcommand synchronises a local Git repo with a remote Subversion repository.
- Custom output for the
fixopenwithcommand solves a common problem in OS X.
timestampcommand returns the current Unix epoch time.
- 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.
- In Vim / MacVim:
- [F5] opens Gundo at the left.
- [F6] removes whitespace from the current buffer.
- [F7] shows the YankRing buffer at the bottom.
- [F8] opens Tagbar at the right.
- [CTRL + O] toggles the NERDTree at the left.
- [CTRL + T] in MacVim open the CtrlP plugin window.
- [CTRL + j] and [CTRL + k] nudge text up and down.
zzcenters the current line in the middle of the screen in normal mode.
<Leader>+markopens the current file in the Marked 2 application.
<Leader>+jsonformats the current JSON on the editor for readability.
<Leader>+PRtoggles MacVim in a "presentation mode" with bigger fonts, for demos and teaching.
<Leader>+WRtoggles MacVim in a "writer mode" with bigger fonts, nicer layout and tools for writing text.
ctagssyntax definitions for Asciidoc, Makefiles, Markdown and Objective-C.
If you want to add your own configuration to zsh and tmux, add it to the
.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.