- The directory
~/.local/bin
must exist. stow
must be installed (brew install stow
)
- Download and install
JetBrainsMono Nerd Font
(to get some nice icons) from here. - Install wezterm with
brew
:brew install --cask wezterm
- Install the config with
stow
stow --verbose wezterm
- Install Zsh
- Install zsh-autosuggestions package with
brew install zsh-autosuggestions
. - Install zsh-syntax-highlighting package with
brew install zsh-syntax-highlighting
. - Add autocompletion capabilities in
~/.zshrc
:
autoload -Uz compinit
# Update compinit cache once a day, to speed up startup time
# From https://collectednotes.com/gillchristian/debugging-zsh-init-times
if [ $(date +'%j') != $(stat -f '%Sm' -t '%j' ~/.zcompdump) ]; then
compinit
else
compinit -C
fi
- In
~/.zshrc
source the 2 previous plugins:
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
- Install FZF, a fuzzy finder that can be used in
zsh
andVim
. The installer should add this line at the end of the~./zshrc
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
- Next line is useful to avoid duplicate entries in
$PATH
, then you can add custom paths to your$PATH$
export -U PATH=$PATH
export PATH=<my custom path>:$PATH
- To use ctrl+ P/N to navigate in history, add in
~/.zshrc
:
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "^P" history-beginning-search-backward
bindkey "^N" history-beginning-search-forward
- Add the aliases with
stow zsh
and in~/.zshrc
:
# functions from oh-my-zsh
function __git_prompt_git() {
GIT_OPTIONAL_LOCKS=0 command git "$@"
}
function git_current_branch() {
local ref
ref=$(__git_prompt_git symbolic-ref --quiet HEAD 2> /dev/null)
local ret=$?
if [[ $ret != 0 ]]; then
[[ $ret == 128 ]] && return # no git repo.
ref=$(__git_prompt_git rev-parse --short HEAD 2> /dev/null) || return
fi
echo ${ref#refs/heads/}
}
# Load aliases
source ~/.zsh_aliases
Following command will install the conf and put some useful sh scripts in ~/.local/bin/
:
stow --verbose tmux
Then install the extracto plugin:
git clone -b python-posix [email protected]:laktak/extrakto.git ~/.local/share/tmux/extrakto
scp tmux_remote/.tmux.conf <ip>:~/.tmux.conf
-
install
pyright
npm install -g pyright
-
install
ruff
pipx install ruff
-
install
rust-analyzer
curl -L https://github.com/rust-lang/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-apple-darwin.gz | gunzip -c - > ~/.local/bin/rust-analyzer chmod +x ~/.local/bin/rust-analyzer
-
install
luals
brew install lua-language-server
-
install
yamlls
npm install -g yaml-language-server
-
install
tsserver
npm install -g typescript-language-server
stow --verbose neovim
stow --verbose starship
And add eval "$(starship init zsh)"
at the end of the ~/.zshrc
file.
stow --verbose vim