that traveled the world with me
Tools used: Zsh or Fish shell, 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
-
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 and set default version with fnm
fnm install ${LTS}
fnm alias default ${LTS}
-
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/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 (I'm using One Dark) and fonts in terminal of choice
https://www.nerdfonts.com/font-downloads (I'm using Caskaydia Cove Nerd Font Complete Mono Regular)
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 (beta version)
brew install neovim --fetch-head
-
Install Neovim plugins dep
brew install gcc make gnu-sed ripgrep fd fzf
-
Mason install lsps
:Mason
in a nvim session 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 manuall with :Mason
-
Install VcXsrv and xclip (WSL only) https://sourceforge.net/projects/vcxsrv/
Follow Step 2, my config already did Step 3:
if clipboard still don't work, check if your firewall is blocking VcXsrv.
-
Additional installs:
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)
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