dotfiles/eggs/zsh/.zshrc

42 lines
1.0 KiB
Bash
Executable File

# Get zsh ready
HISTFILE=~/.cache/.histfile
HISTSIZE=4000
SAVEHIST=4000
setopt extendedglob notify
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
autoload -U compinit; compinit
eval "$(starship init zsh)"
source ~/.config/zsh/zsh-sudo.zsh;
source ~/.config/zsh/fzf-tab/fzf-tab.plugin.zsh
zstyle :compinstall filename '/home/someone/.zshrc'
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*' menu no
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
# Setup default env
source ~/.config/zsh/micro_scripts.sh
source $HOME/.cargo/env > /dev/null 2>&1
nix-shell-cwd
export EDITOR=vim
export PATH="$HOME/Apps:$PATH"
export MANPAGER="less -R --use-color -Dd+r -Du+b"
alias ll="ls -las --color"
alias fcp="rsync -ah -c --progress"
alias systemcall="systemctl"
alias f="yazi . ~/Nextcloud ~/Code . . . . . ~/.config"
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
# Shell integrations
eval "$(fzf --zsh)"