Skip to content

JulianKahnert/dotfiles

Repository files navigation

My personal set of config files for vim & zsh

Install before dotfiles.sh install to avoid glitches!

Installation

macOS: choose the the path to zsh in Terminal.app preferences

git clone --recurse-submodules https://github.com/JulianKahnert/dotfiles.git ~/.dotfiles
~/.dotfiles/dotfiles.sh install

Update dotfiles

~/.dotfiles/dotfiles.sh update

Cheat Sheet

Terminal

CTRL R      command-searching
CTRL T      path-searching

VIM

<Space> Fold code
gcc     comment current line
VIS: gc comment section

Skript: dotfiles.sh

  • ~/.dotfiles/dotfiles.sh install
  • ~/.dotfiles/dotfiles.sh update
  • ~/.dotfiles/dotfiles.sh info
  • ~/.dotfiles/dotfiles.sh maintenance
  • ~/.dotfiles/dotfiles.sh init

ToDo

  • Makefile
  • `init.sh for Linux and FreeBSD
  • write Help for dotfiles.sh

Searching

ag PATTERN /PATH/TO/
ag -i PATTERN /PATH/TO/                             # case insensitive
ag --hidden PATTERN /PATH/TO/                       # also search hidden files
ag --hidden --ignore .git -g "" PATTERN /PATH/TO/   # also search hidden files,
                                                    # but not .git folders
CTRL R      commands
CTRL T      paths

ZSH Functions

  • cdf - cd into the directory of the selected file
  • cdh - fuzzy matching in folder history
  • fkill - kill process
  • mkrepo - create a new repo + pyenv