that traveled the world with me
Tools used: Zsh, Tmux, Neovim (Javascript/Typescript), and IntelliJ IDEA .ideavimrc (VIM settings for Java)
Currently configs does not work with Warp
one day this will be script once I change jobs enough
-
Install iTerm2
-
Clone repo into as ~/.config folder. If your computer is not new, there might be a config folder already. You can move the files into config or delete your config folder if there is nothing important.
rm -rf ~/.config && git clone https://github.com/jancodes/dotfiles.git ~/.config
-
Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install Zsh (https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH)
brew install zsh
-
Install Fnm https://github.com/Schniz/fnm
brew install fnm
-
Install Node with fnm and use it.
fnm install --lts
fnm use lts/latest
-
Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
Install Zsh plugins below:
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/agkozak/zsh-z ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-z
-
Install powerline theme
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
-
Symlink .zshrc
rm -rf ~/.zshrc && ln -s ~/.config/.zshrc ~/.zshrc
-
Set theme and fonts in terminal of choice
> https://www.nerdfonts.com/font-downloads (I'm using Caskaydia Cove Nerd Font Complete Mono Regular) > https://github.com/one-dark/iterm-one-dark-theme/blob/main/One%20Dark.itermcolors (One Dark for Iterm2) > For WSL2 font issues, restart windows explorer
-
Install Tmux
brew install tmux
-
Install tpm
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
-
Symlink .tmux.conf
ln -s ~/.config/.tmux.conf ~/.tmux.conf
-
Install tmux plugins
prefix + I
Mac uses ctrl and Windows/WSL uses alt. Example: Ctrl A is the prefix combo for Mac.If you see extra keys being typed while in tmux for mac, check below link to install the missing colors
https://gist.github.com/bbqtd/a4ac060d6f6b9ea6fe3aabe735aa9d95#the-right-way
-
Install Neovim nightly with bob
https://github.com/MordechaiHadad/bob bob use nightly
-
Install Neovim plugins dep
brew install gcc make gnu-sed ripgrep fd fzf
-
Mason install lsps
:Mason
in a nvim session (nvim in terminal then use the command) then pick the lsp you want to useLSP used in my config:
lua, prettierd, json-lsp, typescript, tailwindcss , eslint_d, cssls
Note: lua, json, typescript, tailwindcss, cssls is installed by default with setup with Mason lspconfig
There is no support for eslint_d and prettier for auto install, so install manually with :Mason
-
Optional:
https://github.com/commitizen/cz-cli for writing beatiful commit messages
https://github.com/yosukes-dev/one-dark-windows-terminal (wsl only)
https://command-not-found.com/xdg-open (wsl only)
https://github.com/cpbotha/xdg-open-wsl xdg-open is not in wsl, so you will need an alternative
-
Optional: Install VcXsrv and xclip (WSL only) https://sourceforge.net/projects/vcxsrv/
Follow Step 2, my config already contain Step 3 setup:
if clipboard still don't work, check if your firewall is blocking VcXsrv.
prefix + [ to go into vim copy mode
source: https://github.com/nvim-telescope/telescope-live-grep-args.nvim
"foo" --iglob
search for foo ignoring ignore files
"foo" --tts
search for foo only in typescript files
rg --type-list
get the possible types add | rg "filter string"
to filter down the results
Mappings | Action |
---|---|
<C-k> |
Quote prompt, e.g. foo → "foo" |
(Some examples are ripgrep specific)
Prompt | Args | Description |
---|---|---|
foo bar |
foo bar |
search for „foo bar“ |
"foo bar" baz |
foo bar , baz |
search for „foo bar“ in dir „baz“ |
--no-ignore "foo bar |
--no-ignore , foo bar |
search for „foo bar“ ignoring ignores |
"foo" ../other-project |
foo , ../other-project |
search for „foo“ in ../other-project |
WSL Optimization
MarkdownPreview, use wsl-open
If gcc can't postinstall, make sure you have installed build-essential
Change key repeat for moving faster in vim with hjkl