Skip to content

mrpmohiburrahman/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GIF

mac os terminal iterm2 shell zsh framwork oh-my-zsh editor vim c code c++ code license


DotFiles


How to use

To better version controlling, I have put all my dotfiles in '~/bin/' directory and create symbolic link to files from the dotfiles directory to the other files that are situated elsewhere. So you don't have to go to different folders every time when you want to edit different files. All you have to do is cd ~/bin/dotfiles and edit files there. That's it.

  1. mkdir -p ~/bin

  2. cd bin/

  3. git clone git@github.com:MD-MRP/dotfiles.git

  4. ln -nfs ~/bin/dotfiles/.bashrc ~/.bashrc

  5. install oh-my-zsh

    1. using curl sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh>)" or
    2. using wget sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)
  6. ln -nfs ~/bin/dotfiles/.zshrc ~/.zshrc


Custom ZSH Theme

GIF

  1. ln -s ~/bin/dotfiles/ZSH_THEME/mrp.zsh-theme ~/.oh-my-zsh/custom/themes/mrp.zsh-theme
  2. set ZSH_THEME="mrp"
  3. Apple icon and version control icon are collected from nerd font icon set
  4. For Apple icon(shown in prompt), I have to direct copy paste it in here right after '%F{#46b5d1}' and '%F{#d16246}'.
  5. For version control icon, I have to put unicode escape sequence in here which is '\ue727'

Vim

GIF

  1. Create symbolic link

    1. ln -nfs ~/bin/dotfiles/vim/vimrc ~/.vimrc
    2. touch ~/.vim
    3. ln -nfs ~/bin/dotfiles/vim ~/.vim
  2. Install Vundle git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

  3. Add plugin in here. This repo contains following vim plugins:

    1. preservim/nerdtree
    2. jiangmiao/auto-pairs
    3. morhetz/gruvbox
    4. arcticicestudio/nord-vim
    5. joshdick/onedark.vim
    6. sheerun/vim-polyglot
    7. itchyny/lightline.vim
  4. vim ~/.vimrc

  5. PluginInstall


Colorls

GIF

  1. Install colorls for special folder and file view. add icon to make it more beautiful.
    1. Install nerdfonts nerdfont
    2. In iterm2, go to Profiles->Text->Non-ASCII Font->select 'Hack Nerd Font', 'regular', size 23 and select 'Use ligatures'(optional)
    3. Install colorls by following these steps
    4. Make alias in .zshrcalias ls="colorls"
    5. Add tab completion to colorls in .zshrc source $(dirname $(gem which colorls))/tab_complete.sh
    6. change the color of colorls output
      1. sudo ln -s ~/bin/dotfiles/config/colorls/dark_colors.yaml /Library/Ruby/Gems/2.6.0/gems/colorls-1.4.2/lib/yaml/dark_colors.yaml


yarn-autocompletions

GIF

  1. yarn-autocompletions
    1. Donwload binary from this link
    2. Install it as shown here