Skip to content

Simple yet powerful Terminal (works on MacOS and Linux)

License

Notifications You must be signed in to change notification settings

Kastilo/dotfiles

 
 

Repository files navigation

dotfiles

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

Prerequisite

Install below tools first before cloning the repo

  • zsh
  • xsel or xclip (only Linux)
  • vim
  • tmux
  • git
  • Windows Terminal (For Multi-Tab WSL)

Fonts

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

Tools Used

Update configuration

To make your dotfiles in sync with mine, use the below command. It will fetch from upstream here.

cd ~/dotfiles
make update

Screenshot

screenshot

Tmux

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

Plugins used

Vim

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

Windows Subsystem for Linux (WSL)

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

Plugins used

Zsh

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

Addons used

Feel free to use them and provide PRs for any improvement

About

Simple yet powerful Terminal (works on MacOS and Linux)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 96.8%
  • Vim Script 3.1%
  • Makefile 0.1%