Files
config/.zshrc

32 lines
854 B
Bash
Executable File

# Add carapace autocomplete
export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional
zstyle ':completion:*' format $'\e[2;37mCompleting %d\e[m'
source <(carapace _carapace)
setopt NO_CASE_GLOB
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
# init oh my posh with theme from stow
eval "$(oh-my-posh init zsh --config $HOME/.config/oh-my-posh/zen.toml)"
# make nix shell zsh instead of bash
any-nix-shell zsh --info-right | source /dev/stdin
# make nvim main editor
export EDITOR=nvim
# Fzf history search
source <(fzf --zsh)
# custom aliases
alias ls="lsd -l"
alias cat="bat"
alias v="nvim"
alias z="zellij"
alias lg="lazygit"
alias nsh="nix-shell -p"
alias ncg="sudo nix-collect-garbage -d"
alias vinix="nvim --cmd 'cd ~/.dotfiles/.nixos'"
alias man='man -P "bat -p"'
source ~/.zshrc-local