gautamr / .dotfiles

~gautamr | powered by https://git.io/dotbot 💾

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.dotfiles

.dotfiles for @gautamr personal development tools

Ref

http://sourabhbajaj.com/mac-setup/ https://www.robinwieruch.de/mac-setup-web-development/

Tools

Before running \install always update the dotbot

git submodule update --remote dotbot

Macos setup

mkdir -p /Users/gautamr/screenshots
defaults write com.apple.screencapture location /Users/gautamr/screenshots  && killall SystemUIServer

xcode command line tools

we need Xcode IDE as we are not building software for Mac - flutter cross-platform

Install

xcode-select --install

Update: you can try to list any updates and install with softwareupdate

softwareupdate --list

Homebrew

Install

https://brew.sh/

Update

# First update the formulae and Homebrew itself
brew update
# https://docs.brew.sh/FAQ

check

brew outdated
brew list --versions
brew cleanup --dry-run
brew cleanup
brew config

brew tap                     # list tapped repositories
brew tap <tapname>           # add tap
brew untap <tapname>         # remove a tap

fonts

brew install --cask font-fira-code
brew install --cask font-jetbrains-mono

essentials

brew install --cask alfred

brew install --cask iterm2
brew install starship

#brew install ispell
#brew install tldr

# for multiple java version
brew install jenv

# Dart and flutter
brew install asdf

tools

brew install ripgrep
brew install fd
brew install --cask emacs
brew install --cask sublime-text
brew install kubectx
brew install --cask visual-studio-code

NeoVIM

# commands
TSInstall <lang>
TSInstallInfo

# key
ctrl + n -> file tree
m -> mark a file
a -> new file
c -> copy file
p -> paste file

# File Navigation
SPC f f -> find file
SPC f b -> find ONLY on open buffer

# Window Navigation
ctrl + j/k/h/l



ecosystems

jvm

java

# install openjdk@17
brew install openjdk@17
sudo ln -sfn /usr/local/opt/openjdk@17/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-17.jdk

# install openjdk@11
brew install openjdk@11
# For the system Java wrappers to find this JDK, symlink it with
sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk

# insttall latest jdk
brew install openjdk
# For the system Java wrappers to find this JDK, symlink it with
sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

# install mvn
brew install mvn

Multiple Java versions

We use jenv to manage multiple Java versions throughout the system

brew install jenv
# list down the jdk versions install
ls -al /Library/Java/JavaVirtualMachines/

# add jdk 17
jenv add /Library/Java/JavaVirtualMachines/openjdk-17.jdk/Contents/Home
# add jdk 11
jenv add /Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home
# add jdk latest
jenv add /Library/Java/JavaVirtualMachines/openjdk.jdk/Contents/Home

# export JAVA_HOME handled by jenv
jenv enable-plugin export

clojure

need not to install Clojure separately; will use it with lein or deps

brew install borkdude/brew/clj-kondo
brew install candid82/brew/joker
brew install leiningen

NOTE: Please note that we need to set LEIN_USE_BOOTCLASSPATH to no until the follwing issues are fixed properl

https://github.com/venantius/ultra/issues/108
https://github.com/brandonbloom/fipp/issues/60
https://github.com/venantius/ultra/issues/103
export LEIN_USE_BOOTCLASSPATH=no

Android

brew cask install android-sdk

node

brew install coreutils
brew install gpg
npm install -g eslint babel-eslint eslint-plugin-react
npm install -g import-js

Haskell

First of all install GHCup with brew; this will manage all ecosystems for Haskell onwards

brew install ghcup

Install haskell-language-server using mason.

Python

asdf plugin-add python
asdf install python 3.12.1
asdf global python 3.12.1
pip install virtualenvwrapper

asdf

asdf list terraform
asdf list all terraform
asdf install terraform 0.14.9
asdf global terraform 0.14.9

asdf plugin-add python
asdf list all python
export ASDF_PYTHON_PATCH_URL="https://github.com/python/cpython/commit/8ea6353.patch?full_index=1"
asdf install python 3.6.14
asdf local python 3.6.14

About

~gautamr | powered by https://git.io/dotbot 💾


Languages

Language:Emacs Lisp 64.8%Language:Lua 26.1%Language:Shell 9.0%