diff options
| author | EnricoGuccii <partyka.003@proton.me> | 2025-08-08 20:23:29 +0200 |
|---|---|---|
| committer | EnricoGuccii <partyka.003@proton.me> | 2025-08-08 20:23:29 +0200 |
| commit | 8cd49f3ac4aa76f9ec5293241092877bb7378b1c (patch) | |
| tree | ace9645fdb20d856252ebc981cc9bf4c7b98566a /.zshrc | |
| parent | 50cd6c1d7fa634b83a02b6c5b54d90f9f98dcd1a (diff) | |
zsh conf
Diffstat (limited to '.zshrc')
| -rw-r--r-- | .zshrc | 49 |
1 files changed, 49 insertions, 0 deletions
@@ -0,0 +1,49 @@ +setopt correct +setopt histignoredups +setopt sharehistory +setopt incappendhistory +setopt interactivecomments + +HISTFILE=~/.zsh_history +HISTSIZE=5000 +SAVEHIST=5000 + +bindkey -v +export KEYTIMEOUT=1 + +autoload -Uz compinit && compinit +autoload -Uz bashcompinit && bashcompinit +zstyle ':completion:*' menu select +zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' + +PROMPT='%F{green}%n@%m%f %F{yellow}%~%f' + +export CLICOLOR=1 +export LSCOLORS=GxFxCxDxBxegedabagaced + +alias grep='grep --color=auto' +alias ll='lsd -all' +alias l='lsd -l' +alias lg='lazygit' +alias v='nvim' +alias vi='nvim' +alias vim='nvim' +alias c='clear' +alias wiki='wikiman' + +bindkey -M vicmd 'jj' vi-cmd-mode +bindkey -M viins 'jj' vi-cmd-mode + +AUTOSUGGEST_DIR="${HOME}/.zsh-autosuggestions" +if [ ! -d "$AUTOSUGGEST_DIR" ]; then + git clone https://github.com/zsh-users/zsh-autosuggestions "$AUTOSUGGEST_DIR" +fi +source "$AUTOSUGGEST_DIR/zsh-autosuggestions.zsh" +ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8' + +if command -v tmux >/dev/null 2>&1; then + if [ -z "$TMUX" ] && [ -n "$PS1" ] && [[ "$TERM" != "linux" ]]; then + tmux attach -t default || tmux new -s default + fi +fi + |