/dev-env

Primary LanguageLua

Development Configurations

Install Pre-requisite

  • Intall all the brew apps from install.txt
xargs brew install < install.txt
  • Install the rmtree to remove formulae and all their dependencies
brew tap beeftornado/rmtree
brew rmtree <packagename>
  • Enable fzf keybindings
# paste this and hit yes for all
$(brew --prefix)/opt/fzf/install
  • Jump: To easily navigate between folders. After installation, put this in the .zshrc
eval "$(jump bash)"

Tip

Get Amazon Q here if it's not installed with brew. After Installation, run cw integrations install input-method

  • Alacritty

Tip

To open Alacritty on mac, right click on the alacritty icon click Open & click Open again

  • To change the theme you need to create a sym link to the file you want with the following command.

    # for light theme
    ln -s ~/.config/alacritty/themes/light.toml ~/.config/alacritty/themes/my_theme.toml
    # for dark theme
    ln -s ~/.config/alacritty/themes/dark.toml ~/.config/alacritty/themes/my_theme.toml
  • By default, font smoothing causes fonts to be slightly bold in Alacritty.

# disble font smoothing
defaults -currentHost write -g AppleFontSmoothing -int 0
# reset font smoothing
defaults -currentHost delete -g AppleFontSmoothing

Install

  • Backup Neovim Files
# required
mv ~/.config/nvim{,.bak}

# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}
  • Clone the repo
git clone git@github.com:xaaha/dev-env.git #  https://www.github.com/xaaha/dev-env
  • Stow all the folder you need with
# stow all at once
for dir in $(pwd)/*/; do stow -t ~ $(basename "$dir"); done
# stow one at a time
stow -t ~ config # to stow the config
stow -t ~ wezterm # to stow the wezterm and so on
stow -t ~ tmux

Useful Steps for tools

Language Tools

  • GoDoc: Go Standard library documentation offline
go install golang.org/x/tools/cmd/godoc@latest

Add this to the .zshrc file

export PATH=$PATH:$(go env GOPATH)/bin

Source and reload the zsh config

source .zshrc

Then, run with

godoc -http=:6060

Lastly on the browser

http://localhost:6060/