Skip to content

chhetrisushil/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

790 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

This repo is just to store my dot config files for example .vimrc etc

reference: https://github.com/sagarrakshe/dotvim, https://github.com/sagarrakshe/dotfiles

Setup

Run the following command to set up the environment

with wget:

sh -c "$(wget https://raw.githubusercontent.com/chhetrisushil/dotfiles/master/setup.sh -O -)"

OR

with curl:

sh -c "$(curl -fsSL -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/chhetrisushil/dotfiles/master/setup.sh)"

NOTE: Run the following command to see verbose logs

curl -sL -H 'Cache-Control: no-cache, no-store' https://raw.githubusercontent.com/chhetrisushil/dotfiles/master/setup.sh | sh -s -- -vvv

Autolock ‘alock’

install alock from https://github.com/chhetrisushil/alock

Drop-down terminal ‘yakuake’

install ‘yakuake’ for drop-down terminal

mpv for mac os

  • Install mpv for mac os using brew run the following command brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/mpv.rb

Nerd font

Powerline font for ‘agnoster’ zsh theme and vim-airline

cobalt2 zsh-theme for iterm

Instant markdown for instant preview

Install ack-grep for ack.vim support

  • Run command sudo apt-get install ack-grep to install ack. symlink ack-grep to ack if needed ln -s /usr/bin/ack-grep /usr/bin/ack

For fish like auto completion in zsh

  • Install zsh-autosuggestions from https://github.com/zsh-users/zsh-autosuggestions
  • Run the following command git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
  • Plugin is already mapped in .zshrc file

Install xcape to map Caps_Lock to ctrl (on long press) and esc (on tap) on Archlinux

Install xmodmap to map Tab to Hyper_L (on long press) and Tab (on tap) on Archlinux

  • Try sudo pacman -S xorg-xmodmap first (archlinux)
  • Install xmodmap before setting up the environment
  • This also maps backslash to Hyper_R (on long press) and backslash (on tap)

Install HyperKey.app to map Caps_Lock to ctrl (on long press) and esc (on tap) on MacOS

Install jsctags for javascript ctags

  • jsctags for ctags generation for vim read more at https://www.npmjs.com/package/jsctags
  • Run the following command to create tags file find <path to directory containing javascript files> -type f -iregex ".*\.js$" -not -path "./node_modules/*" -exec jsctags {} -f \; | sed '/^$/d' | sort > tags
  • set the tags option to the tag file in local.vim e.g. set tags+=./tags

Install the_silver_searcher

Install elm-format

Install elm

Neovim setup

  • Copy nvim folder to ~/.config
  • NOTE: vim’s .vim folder and .vimrc should alredy be setup before copying nvim folder

Install bat (alternate to cat command)

  • Install bat it’s a good alternate to cat command for file content viewing

Install lazydocker

  • Install lazydocker for visual docker container management

Install lazygit A simple terminal UI for git commands

Install peco

Install z directory jumper

Install trayer lightweight system tray

Neovim plugins

Install exa modern replacement for ls

Install fd an alternative to find

Install lvim Lunar vim

Install dmenu application launcher

Install polybar status bar

Install betterlockscreen for screen lock on arch linux

How to configure/customize Neovim

Steps to launch kanata on start-up MacOS

  • Run the script located in scripts/bin/kanata_launch_macos located in the dotfiles folder
  • Add kanata binary to system settings -> privacy & security -> input monitoring
  • Reboot the system

Linux

  • Run sudo groupadd uinput to create a input user group.
  • Run sudo usermod -aG input,uinput $(whoami) to add the user to the usergroups.

NOTES:

  • Before setting up vim copy .vim folder to ~/.vim
  • Install typescript dtsm typings by running sudo npm install -g typescript dtsm typings for typescripts plugin to work properly
  • location of most of the config is HOME directory (i.e. ~/) except for .gitconfig which resides in the project directory
  • location for .ackrc is home directory (i.e. ~/) e.g. ~/.ackrc
  • Keep colors folder inside ~/.vim folder - Create a “.tags” folder in home directory
  • Run npm install after installing tern plugin - Run git submodule update –init –recursive in vim-jsbeautify plugin folder
  • Map actionscript.dict in .vimrc properly - Path to xmonad.desktop /usr/share/xsessions/xmonad.desktop, update the Exec property value to the starter script
  • Ultisnips to work create a directory mkdir -p ~/.vim/ftdetect and run this command ln -s ~/.vim/bundle/ultisnips/ftdetect/* ~/.vim/ftdetect/ - jsctags for ctags generation for vim read more at https://www.npmjs.com/package/jsctags
  • use https://github.com/gpakosz/.tmux for tmux configuration
  • set locale to utf8 in linux for powerline fonts to work properly in tmux, run sudo localectl set-locale LANG“en_IN.utf8”, choose utf8 locale by running =localectl list-locales. Once the locale is set a reboot is required.
  • Install eslint, run npm install -g eslint - .tmux/ folder is customized copy of oh-my-tmux
  • to enable undercurl set the following in .tmux.conf.local Copy with #!important
    set -g default-terminal 'alacritty' #!important
    set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' #!important
    set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' #!important
        
  • install reattach-to-user-namespace in macos for tmux and clipboard binding and xclip for Linux
  • install clipit for clipboard management (paste from history) for linux
  • install pywal for setting wallpaper and corresponding theme
  • install nerd-fonts-complete from AUR for arch linux for nerd font support (powerline support)
  • terminator config path .config/terminator/config - if kanata does’t work refer https://github.com/jtroo/kanata as there might be a need to add the user to uinput group.
  • copy .cargo/config before setting up neovim. lua/json5 neovim plugin needs this file.
  • install debugpy to debug python in neovim pip3 install debugpy
  • install delve through mason plugin (Mason dap)
  • install mermaid cli npm install -g @mermaid-js/mermaid-cli
  • install magick cli (imagemagick) brew install imagemagick
  • install plantuml cli brew install plantuml before that install graphviz, it’s a plantuml dependency brew install graphviz
  • install ueberzugpp to render image on terminal brew install jstkdng/programs/ueberzugpp
  • install quarto cli for quarto-nvim to work (https://quarto.org/docs/get-started/)
  • install gh for octo.nvim

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors