brew install zsh # only in linux sub-systems. Mac comes with ZSH installed.
To use zsh ability to use plugins to bring in features and also be aware of performance, antidote, a framework is used to install plugins.
brew install antidote
All plugins necessary go inside a text file and that file is bundled to a shell script.
To install the .zsh_plugins.txt
(use stow zsh
to get in the right directory),
echo -n 'source /path/to/antidote.zsh' >> ~/.zshrc
echo -n 'antidote load' >> ~/.zshrc #loads whenever `zsh_plugins.txt` changes.
To update antidote, use antidote update
.
##homebrew To know the dependencies of an installed package
brew deps --tree --installed <packagename> # eg. brew deps --tree --installed ruby
Important: Neovim version must be greater than 0.6.0 for most plugins to work. Latest development version is preferred.
In Mac, neovim is installed via homebrew. Link.
brew install neovim
brew install --HEAD luajit neovim
To update dev version,
brew reinstall neovim
or
brew upgrade neovim
For Ubuntu, use this link.
sudo apt remove neovim
sudo apt autoclean && sudo apt autoremove # unistall older version of neovim and remove dependencies
Note: Removes also xclip, neovim-runtime along with it.
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt update
sudo apt install neovim fzf ripgrep xclip
brew install tree-sitter # Mac
Ubuntu
Download the latest from here and
place the executable(make it as one) inside ~/.local/bin/
.
To install
sh -c curl -fLo $HOME/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Auto install check
if empty(glob('$HOME/.config/nvim/autoload/plug.vim'))
silent !curl -fLo $HOME/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
Plugin/packages/language servers such as pyright
, ripgrep
, fd
, texlab
are installed using brew install ...
Mar 1, 2022 - telescope-fzf-native.nvim
is throwing error at fresh install. Possibly due to make
not compiling.
Goto the installed dir path and execute make
or reinstall fzf-native.
GNU Stow is installed through homebrew brew install stow
. To update formula in Mac, run brew update
first.
sudo apt install stow
for Ubuntu.
Helpful resource - https://www.jakewiesler.com/blog/managing-dotfiles
Stow ignore - https://unix.stackexchange.com/questions/121910/gnu-stow-how-to-stow-only-selected-files-folders
A pretty awesome tool to display a directory's tree structure. See here
brew install tree #for mac
sudo apt install tree #for ubuntu
Easiest way to preview and download themes is kitty +kitten themes
.
Install
brew install --cask visual-studio-code
Uninstall use this link to uninstall the app in vs code -- https://stackoverflow.com/a/42603699, https://stackoverflow.com/a/53839847
brew uninstall visual-studio-code
code --list-extensions
code --list-extensions >> ~/extension.txt
Miniconda3 https://docs.conda.io/en/latest/miniconda.html Also the archive. Look for Miniconda3-latest.
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
bash Miniconda3-latest-MacOSX-arm64.sh
Miniforge3 https://github.com/conda-forge/miniforge#miniforge3
wget -q https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
bash Miniforge3-Linux-x86_64.sh
or
wget -q https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh
bash Miniforge3-MacOSX-arm64.sh
Install Mamba package manager
conda install -n base mamba -c conda-forge
or conda install -n base mamba -c fastchan
After installing Mamba, every command starting with conda
can be replaced with mamba
.
conda create -n <env-name>
conda env create -n ENVNAME --file ENV.yml
# import with an environment.yml file
conda create --name myclone --clone myenv
# Clone an existing environment
conda list --explicit > spec-file.txt
# Save installed packages for later use in same OS.
conda create --name myenv --file spec-file.txt
# Import env from a file.txt
conda install --name myenv --file spec-file.txt
# install packages in an existing env.
conda info --envs
or conda env list
# check environments available
conda env remove -n <env-name>
# To delete
-
Activate the environment that is to be shared.
-
conda env export ENVNAME>ENV.yml
export to ayml
file.
conda update -n <env-name> <package name> -c <channel-name>
# updates only mentioned package
or
conda update -n <env-name> --all -c <channel-name>
# updates all installed packages
conda clean --all
# Remove index cache, lock files, unused cache packages, and tarballs.
Ubuntu
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install terraform
Mac with Homebrew
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
- Goto this link — https://www.tug.org/texlive/acquire-netinstall.html, download uni-tar.gz file(ca. 5 mb).
- Cd into the folder and run install-tl script. GUI doesn’t work well in dark mode. Switch to light mode. Follow instructions.
- Change install folder prefix to home directory to avoid permissions.
- Click advanced, In “N.of collections”, click “customise” and choose necessary package and click install. Install will take about 30 mins.
- There is also Mactex(https://www.tug.org/mactex/mactex-download.html) which contains all the packages. About 7gb big. Didn’t install.
export PATH=/usr/dross/texlive/2022/bin/universal-darwin:$PATH export MANPATH=/usr/dross/texlive/2022/texmf-dist/doc/man:$MANPATH export INFOPATH=usr/dross/texlive/2022/texmf-dist/doc/info:$INFOPATH