old-dots

My old dotfiles
Log | Files | Refs

.zshrc (537B)


      1 # Add colour support and set prompt
      2 autoload -U colors && colors
      3 PS1='%F{green}%n%f@%F{blue}%m%f %F{white}%B%~%b%f $ '
      4 
      5 # History support
      6 HISTSIZE=1000
      7 SAVEHIST=$HISTSIZE
      8 HISTFILE="$HOME/.cache/zsh/history"
      9 
     10 # Tab completion
     11 autoload -Uz compinit
     12 compinit
     13 zstyle ':completion:*' menu select
     14 zstyle 'completion:complete:*' gain-privileges 1
     15 setopt COMPLETE_ALIASES
     16 
     17 # Key bindings
     18 bindkey ';5D' backward-word
     19 bindkey ';5C' forward-word
     20 
     21 # Avoid programs freezing terminals etc
     22 ttyctl -f
     23 
     24 # Aliases
     25 alias ls='ls --color=auto'
     26 alias v=nvim