dotfiles

My current dotfiles, managed with stow!
Log | Files | Refs | README

.zshrc (1252B)


      1 source ./.zprofile
      2 
      3 # Add colour support and set prompt
      4 autoload -U colors && colors
      5 #PS1="%F{green}%n%f@%F{blue}%m%f %F{white}%B%~%b%f $ "
      6 PS1=" %F{yellow}>%f "
      7 RPS1=""
      8 
      9 # Set default editor to neovim
     10 EDITOR="nvim"
     11 VISUAL=$EDITOR
     12 GIT_EDITOR=$EDITOR
     13 
     14 XDG_CONFIG_HOME="$HOME/.config"
     15 
     16 # pfetch settings
     17 export PF_INFO="ascii title os host kernel uptime memory wm shell editor palette"
     18 
     19 # Set default terminal emulator
     20 TERMINAL="urxvt"
     21 
     22 # Add all scripts to the path
     23 
     24 # History support
     25 HISTSIZE=1000
     26 SAVEHIST=$HISTSIZE
     27 #HISTFILE="$HOME/.config/zsh_history"
     28 
     29 # Tab completion
     30 autoload -Uz compinit
     31 compinit
     32 zstyle ':completion:*' menu select
     33 zstyle 'completion:complete:*' gain-privileges 1
     34 setopt COMPLETE_ALIASES
     35 
     36 setopt +o nomatch
     37 
     38 # Enable command correction
     39 #setopt correctall
     40 
     41 # Key bindings
     42 bindkey '[1;5D' backward-word
     43 bindkey '[1;5C' forward-word
     44 bindkey '^\b'  backward-delete-word
     45 bindkey '[P' delete-char
     46 bindkey -s '[2K' ""
     47 bindkey -s '\e' ""
     48 
     49 # Avoid programs freezing terminals etc
     50 ttyctl -f
     51 
     52 # Aliases
     53 alias ga='git add'
     54 alias gc='git commit'
     55 alias gp='git push'
     56 alias gs='git status'
     57 alias ls='ls --color=auto'
     58 alias la='ls -la'
     59 alias ssh='TERM=xterm-256color ssh'
     60 
     61 alias v=$EDITOR
     62 
     63 alias bat="cat /sys/class/power_supply/BAT0/capacity"