This repo contains my dotfiles. It works on both MacOS and Linux. Use below command to get started quickly
cd ~
git clone https://github.com/arpitjindal97/dotfiles.git dotfiles
cd dotfiles
make install
Note that Fantasque Sans is currently broken and MesloLGS NF needs to be set as the font for the theme to work properly
Install below tools first before cloning the repo
zsh
xsel
orxclip
(only Linux)vim
tmux
git
Windows Terminal
(For Multi-Tab WSL)
Note:
- MesloLGS NF needs to be set as the font in terminal you are using for the theme to work properly
- On Windows, Download & Install the font "MesloLFS-NF" directly from the repository
To make your dotfiles in sync with mine, use the below command. It will fetch from upstream here.
cd ~/dotfiles
make update
If you default shell is not zsh
and you try to open tmux and It is not be able to render powerline symbols. Then type below command then try again.
export LC_ALL=en_US.UTF-8
Key Combination | Function |
---|---|
prefix | C-a |
prefix + [ | copy-mode vi |
prefix + b | previous-window |
prefix + n | next-window |
prefix + p | paste buffer from clipboard (xsel) |
prefix + k | select pane -U |
prefix + j | select pane -D |
prefix + h | select pane -L |
prefix + l | select pane -R |
prefix + C-h | resize pane -L 1 |
prefix + C-j | resize pane -D 1 |
prefix + C-k | resize pane -U 1 |
prefix + C-l | resize pane -R 1 |
prefix + r | reload source file |
copy-mode-vi v | begin-selection |
copy-mode-vi y | copy-buffer to clipboard (xsel) |
Rest all other key binding are samme.
Plugin Manager: tpm
Key | Function |
---|---|
C-n | NerdTreeToggle |
I haven't set any key binding for vim. All the commands are as default provided by the plugins. Check their documentation.
Plugin Manager: vim-plug
In order to correctly render the symbols on the WSL subsystem a few additional steps must be taken.
Clone the respository from Powershell on Winwdows or Download the font "MesloLFS-NF" directly from the repository Install for all Users (requires admin escalation) Close all windows of the Windows Terminal
If using the default Ubuntu terminal window, right click title-bar and select Properties > Font If using the Windows Terminal (Preview or Stable), click the dropdown menu arrow, Settings > Ubuntu > Appearance
Set font in Ubuntu terminal to "MelsoLFS NF"
For TMUX like support please see Windows Terminal recommendation, you can install via the Windows Store or the Official Github
- github.com/scrooloose/nerdtree
- github.com/Xuyuanp/nerdtree-git-plugin
- github.com/elzr/vim-json
- github.com/vim-airline/vim-airline
- github.com/vim-airline/vim-airline-themes
- github.com/airblade/vim-gitgutter
- github.com/tpope/vim-fugitive
- github.com/ctrlpvim/ctrlp
- github.com/jiangmiao/auto-pairs
- github.com/tpope/vim-surround
- github.com/Yggdroot/indentLine
- github.com/ntpeters/vim-better-whitespace
- github.com/altercation/vim-colors-solarized
- github.com/fatih/vim-go
- github.com/godlygeek/tabular
- github.com/mhinz/vim-signify
- github.com/darfink/vim-plist
Vim keybindings are used. Please do not edit zshrc
file. If you want to set some environment variable then provide ~/.zshenv
file.
It will get sourced automatically. You can see a sample .zshenv
file here
Have a look at different types of files at zsh.sourceforge.net/Intro/intro_3.html
Feel free to use them and provide PRs for any improvement