Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
12 changes: 5 additions & 7 deletions .vimrc → .vimrc.symlink
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,18 @@ filetype plugin indent on
" something messes up this setting in the plugins
set expandtab



let mapleader = "\<Space>"

nmap <S-Enter> O<Esc>
nmap <CR> o<Esc>

inoremap <Up> <NOP>
inoremap <Down> <NOP>
inoremap <Left> <NOP>
inoremap <Right> <NOP>
noremap <Up> <NOP>
noremap <Down> <NOP>

let mapleader = "\<Space>"

nmap <S-Enter> O<Esc>
nmap <CR> o<Esc>

" presentation mode
noremap <Left> :silent bp<CR> :redraw!<CR>
noremap <Right> :silent bn<CR> :redraw!<CR>
Expand Down
1 change: 1 addition & 0 deletions .zshenv.symlink
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export PATH=$HOME/bin:/usr/local/bin:$PATH
5 changes: 5 additions & 0 deletions .zshrc → .zshrc.symlink
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ eval $(keychain --eval --quiet)

# direnv
eval "$(direnv hook zsh)"

# load aliases
if [ -f ~/.aliases ]; then
. ~/.aliases
fi
48 changes: 48 additions & 0 deletions install-dotfiles.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/bash

DOTFILES_ROOT=$(pwd)

#symlink dotfiles into home directory
install_dotfiles () {

local overwrite_all=false backup_all=false skip_all=false

for src in $(find "$DOTFILES_ROOT/" -maxdepth 2 -name '*.symlink')
do
dst="$HOME/$(basename "${src%.*}")"
ln -s "$src" "$dst"
done
}

mkdir -p ~/.config # in case if there is not any custom config
mkdir -p ~/.vim # in case if there is not any .vim home folder
mkdir -p /opt/jenv/completions # in case if it is not existed

git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

install_dotfiles

#setup oh-my-zsh
git clone https://github.com/robbyrussell/oh-my-zsh ~/.oh-my-zsh
cd ~/.oh-my-zsh/custom/plugins

git clone git://github.com/zsh-users/zsh-syntax-highlighting.git

cd $DOTFILES_ROOT

#setup submodules of this repository
git submodule init
git submodule update

# symlink config folder
ln -s $DOTFILES_ROOT/.config/* ~/.config

# symlink bin folder
mkdir ~/bin
ln -s $DOTFILES_ROOT/bin/* ~/bin

# symlink .oh-my-zsh themes folder
ln -s $DOTFILES_ROOT/.oh-my-zsh/custom/themes/* ~/.oh-my-zsh/custom/themes

# symlink custom zsh config
ln -s $DOTFILES_ROOT/.oh-my-zsh/custom/*.zsh ~/.oh-my-zsh/custom