65 lines
1.8 KiB
Bash
65 lines
1.8 KiB
Bash
|
|
setopt histignorealldups sharehistory appendhistory histignorespace
|
|
|
|
setopt autopushd pushd_ignore_dups
|
|
|
|
# Use emacs keybindings even if our EDITOR is set to vi
|
|
bindkey -e
|
|
|
|
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
|
|
HISTSIZE=1000000
|
|
SAVEHIST=10000000
|
|
HISTFILE=~/.histfile
|
|
|
|
# Use modern completion system
|
|
autoload -Uz compinit
|
|
compinit
|
|
|
|
zstyle ':completion:*' auto-description 'specify: %d'
|
|
zstyle ':completion:*' completer _complete _correct _approximate
|
|
zstyle ':completion:*' format 'Completing %d'
|
|
zstyle ':completion:*' group-name ''
|
|
zstyle ':completion:*' menu select=2
|
|
eval "$(dircolors -b)"
|
|
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
|
zstyle ':completion:*' list-colors ''
|
|
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
|
|
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
|
|
zstyle ':completion:*' menu select=long
|
|
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
|
zstyle ':completion:*' use-compctl false
|
|
zstyle ':completion:*' verbose true
|
|
|
|
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
|
|
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
|
|
|
|
|
export EDITOR=vim
|
|
|
|
alias ls="ls --color=auto"
|
|
alias grep='grep --color=auto'
|
|
alias mv="mv -i"
|
|
alias ip='ip --color=auto '
|
|
|
|
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
source <(fzf --zsh)
|
|
|
|
autoload -Uz edit-command-line
|
|
zle -N edit-command-line
|
|
bindkey '^Xe' edit-command-line
|
|
|
|
if command -v starship &> /dev/null
|
|
then
|
|
eval "$(starship init zsh)"
|
|
else
|
|
autoload -U promptinit
|
|
promptinit
|
|
prompt adam2 8bit
|
|
fi
|
|
|
|
export MANPAGER="vim +MANPAGER --not-a-term -"
|
|
|
|
source "$HOME/dotfiles/vim_terminal.sh"
|
|
|
|
# vim: set foldmethod=marker filetype=zsh:
|