Skip to content

kenkangxgwe/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Table of Contents

Setup .git in a different directory

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

Vim config files are stored under vimfiles for Windows and .vim for Linux.

Plug

To install plug

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

base16 colorscheme

To 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)

.inputrc

Some other useful configs not applied in this repo:

About

my dotfiles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors