# minimal usable .zshrc, 05feb2013 +leah+ setopt emacs nobeep nonomatch shnullcmd extendedglob \ bashautolist noautomenu noalwayslastprompt autoload -Uz compinit && compinit WORDCHARS='*?_-.[]~&;$%^+' # prompt tweaks, 20jul2017 +leah+ PS1='%B%m%(?.. %??)%(1j. %j&.)%b %2~%B%#%b ' # minimal usable history, 12nov2015 +leah+ setopt histignoredups histignorespace incappendhistory extendedhistory SAVEHIST=9000 HISTSIZE=9000 HISTFILE=~/.zsh_history # use global history, 05sep26 +kenshi+ setopt sharehistory # minimal functions, 02mar +kenshi+ mkcd() { mkdir -p "$1"; cd "$1"; } kcdp() { name="`lr -A -t 'depth > 3 ? prune : print' -t 'type=d' "$HOME/src" -s | fzy`" test $? -eq 0 && cd "$HOME/src/$name" } alias kp='pass' alias kpc='pass -c' alias xi='doas xi -y' alias xr='doas xbps-remove' alias strace='strace -f -s 256 -yy' # print date +hostname+ [battery] printf '%s +%s+ %s\n' \ "$(date +%d%b%Y | tr [:upper:] [:lower:])" \ "$(hostname)" \ "$((cat /sys/class/power_supply/BAT0/capacity 2>/dev/null && echo %) | tr -d '\n')" test -d ~/Downloads && rmdir ~/Downloads . /usr/share/fzf/completion.zsh . /usr/share/fzf/key-bindings.zsh