dotfiles/eggs/zsh/.zshrc
Katzenkralle 4e9be09c10 Init
2025-05-10 19:23:48 +02:00

41 lines
1004 B
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)"
# More Plugins handeld by nix
source ~/Builds/zsh/fzf-tab/fzf-tab.plugin.zsh;
source ~/Builds/zsh/zsh-sudo/sudo.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 ~/.micro_scripts
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"
# Shell integrations
eval "$(fzf --zsh)"