To prevent the whole $HOME to be recognized as a huge repo, use:
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME/'(CR: @anandpiyer)
But magit won’t detect the repo in this case. To enable it temporarily, add a new file:
echo 'gitdir: $HOME/dotfiles/' > .git(CR: @tarsius)
Vim config files are stored under vimfiles for Windows and .vim for Linux.
To install plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vimTo properly display base16 colorscheme, base16-shell is also required (Source: base16-vim#troubleshooting).
Config should be added to .bashrc:
# Base16 Shell
BASE16_SHELL="$HOME/.config/base16-shell/"
[ -n "$PS1" ] && \
[ -s "$BASE16_SHELL/profile_helper.sh" ] && \
eval "$("$BASE16_SHELL/profile_helper.sh")"Open a new shell and type base16 followed by a tab to perform tab completion.
(Source: base16-shell#bashzsh)
Also update .vimrc to use ~/.vimrc_background file.
if filereadable(expand("~/.vimrc_background"))
let base16colorspace=256
source ~/.vimrc_background
endif(Source: base16-shell#base16-vim-users)
Some other useful configs not applied in this repo:
- Use vi shortcuts in terminal
- Change cursor shape in different mode
# set show-mode-in-prompt on set vi-cmd-mode-string "\1\e[2 q\2" set vi-ins-mode-string "\1\e[6 q\2"
(Cr: @Issac Hanson)